-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: remove unnecessary sideload inlining, add assertion
`Replica.sendRaftMessages` used to contain logic to inline sideloaded entries for `MsgApps`. This was unnecessary, as `MsgApps` would never contain thin entries. This is because `replicaRaftStorage.Entries` already performs the sideload inlining for stable entries and `raft.unstable` always contain fat entries. Since these are the only two sources that `raft.sendAppend` gathers entries from to populate `MsgApps`, we should never see thin entries in `MsgApps`. This change replaces the inlining attempt with an assertion. Release note: None
- Loading branch information
1 parent
aae0424
commit 274691e
Showing
2 changed files
with
32 additions
and
33 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