From 9a51ecc98b20614af51c99b492c766125f8feb2a Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Mon, 7 Oct 2019 16:15:23 -0500 Subject: [PATCH] agent: clients should only attempt to remove pruned nodes once per call (#6591) --- agent/consul/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/client.go b/agent/consul/client.go index 7e5a0044f..14b36373f 100644 --- a/agent/consul/client.go +++ b/agent/consul/client.go @@ -265,7 +265,7 @@ func (c *Client) LANSegmentMembers(segment string) ([]serf.Member, error) { // RemoveFailedNode is used to remove a failed node from the cluster func (c *Client) RemoveFailedNode(node string, prune bool) error { if prune { - c.serf.RemoveFailedNodePrune(node) + return c.serf.RemoveFailedNodePrune(node) } return c.serf.RemoveFailedNode(node) }