-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: RaftLogReaderExt::get_log_id() should not return last-purged-id
`get_log_id()` should only return present log id, and should not be responsible to return id of an already purged log entry, which introduce unnecessary complexity. Upgrade tip: An RaftStorage implementation should have already maintained the last-purge-log-id. Avoid getting it via `RaftLogReaderExt::get_log_id()`.
- Loading branch information
1 parent
6330a25
commit 8a81df5
Showing
2 changed files
with
7 additions
and
11 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