-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: introducing CommittedVote, NonCommittedVote, and RefVote types
- **Introduce Specialized Vote Types:** - Added `CommittedVote` and `NonCommittedVote` to distinguish between votes that have been accepted by a quorum and those that have not. - Introduced `RefVote` to provide a reference-based representation of votes, facilitating safer and more efficient comparisons. - **Update Vote Management Logic:** - Replaced direct usage of `Vote` with `CommittedVote` and `NonCommittedVote` across various modules (`heartbeat/worker.rs`, `notification.rs`, `raft_core.rs`, etc.) to enhance type safety and clarity. - Modified comparison logic to leverage the new vote types, ensuring accurate and meaningful ordering based on vote status. - **Enhance Notification Mechanisms:** - Updated notification structures to use the new vote types, improving the accuracy of messages related to vote responses and higher votes observed.
- Loading branch information
1 parent
f1aba77
commit 3fe7d9a
Showing
18 changed files
with
228 additions
and
107 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
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
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
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.