agent: clients should only attempt to remove pruned nodes once per call (#6591)
This commit is contained in:
parent
dd0e55404c
commit
9a51ecc98b
|
@ -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…
Reference in New Issue