-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: add
last_membership
to SnapshotMeta
Raft actually has two slots of logs: the membership log and the application log. In order to simplify the design and implementation, raft stores these two slots of logs in one slot. A log snapshot, should contain the information about these two slots: - last applied business log: `last_applied`, - and last applied membership log: `last_applied_membership`, which is not included in `SnapshotMeta` and should be added. With `last_applied_membership`, the `Engine` will be able to handle the install-snapshot event without accessing the `RaftStorage`. - Fix: #334
- Loading branch information
1 parent
26eb737
commit 1f645fe
Showing
5 changed files
with
81 additions
and
2 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