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

This commit is contained in:
R.B. Boyer 2019-10-07 16:15:23 -05:00 committed by GitHub
parent dd0e55404c
commit 9a51ecc98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }