Browse Source

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
commit
6439af86eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agent/consul/client.go

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

Loading…
Cancel
Save