-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Raft] Add prevote to make it better (#3322)
* prevote * remove term in AskForVoteResp * address @kikimo's comments * rename proposedTerm_ to votedTerm_ * fix leader can't work when term changed during sending logs Co-authored-by: yaphet <[email protected]>
- Loading branch information
1 parent
6a8a5f7
commit c6d1046
Showing
4 changed files
with
156 additions
and
166 deletions.
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
Oops, something went wrong.