From 6439af86ebe319bf3ce4d29809d4a1270423a7a8 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 7e5a0044f9..14b36373fb 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) }