-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pre-vote implementation where leader's pre-vote is rejected (#605)
* fix pre-vote to correctly identify candidate addr * add test that pre-vote should not reject leader * add TestRaft_PreVote_ShouldRejectNonLeader * fix test to use Leader() to avoid race condition
- Loading branch information
1 parent
831ddf8
commit 497108f
Showing
2 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters