agent: clients should only attempt to remove pruned nodes once per call (#6591)

pull/6600/head
R.B. Boyer 5 years ago committed by GitHub
parent 7713d4a988
commit 6439af86eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -265,7 +265,7 @@ func (c *Client) LANSegmentMembers(segment string) ([]serf.Member, error) {
// RemoveFailedNode is used to remove a failed node from the cluster // RemoveFailedNode is used to remove a failed node from the cluster
func (c *Client) RemoveFailedNode(node string, prune bool) error { func (c *Client) RemoveFailedNode(node string, prune bool) error {
if prune { if prune {
c.serf.RemoveFailedNodePrune(node) return c.serf.RemoveFailedNodePrune(node)
} }
return c.serf.RemoveFailedNode(node) return c.serf.RemoveFailedNode(node)
} }

Loading…
Cancel
Save