diff --git a/raft/node.go b/raft/node.go index 81758020f..46ea6db9a 100644 --- a/raft/node.go +++ b/raft/node.go @@ -367,10 +367,12 @@ func (n *node) run() { // very sound and likely has bugs. if _, okAfter := r.prs.Progress[r.id]; okBefore && !okAfter { var found bool + outer: for _, sl := range [][]uint64{cs.Voters, cs.VotersOutgoing} { for _, id := range sl { if id == r.id { found = true + break outer } } }