-
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: replace EffectiveMembership with StoredMembership in RaftStorage
`EffectiveMembership` is a struct used at runtime, which contains additional information such as an optimized `QuorumSet` implementation that has different structure from a `Membership`. To better separate concerns, a new struct called `StoredMembership` has been introduced specifically for storage purpose. It contains only the information that needs to be stored in storage. Therefore, `StoredMembership` is used instead of `EffectiveMembership` in RaftStorage. Upgrade tip: Replace `EffectiveMembership` with `StoredMembership` in an application. Fields in `EffectiveMembership` are made private and can be accessed via corresponding methods such as: `EffectiveMembership.log_id` and `EffectiveMembership.membership` should be replaced with `EffectiveMembership::log_id()` and `EffectiveMembership::membership()`.
- Loading branch information
1 parent
1cc2198
commit 0a1dd3d
Showing
38 changed files
with
351 additions
and
261 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
Oops, something went wrong.