raft: fix spurious split-vote
Due to a typo raft candidate counted a vote for another node as a vote for self in its split-vote detector. This could lead to spurious split-vote detection in cases when another node wins elections with a bare minimum of votes for it (exactly a quorum of votes). Closes #8698 NO_DOC=bugfix (cherry picked from commit 2afde5b1)
Showing
- changelogs/unreleased/gh-8698-spurious-split-vote.md 5 additions, 0 deletionschangelogs/unreleased/gh-8698-spurious-split-vote.md
- src/lib/raft/raft.c 1 addition, 1 deletionsrc/lib/raft/raft.c
- test/unit/raft.c 30 additions, 1 deletiontest/unit/raft.c
- test/unit/raft.result 4 additions, 1 deletiontest/unit/raft.result
Loading
Please register or sign in to comment