forked from kakao/varlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage): change the trim not to remove the commit context
This patch changes the method `internal/storage.(*Storage).Trim` not to remove the commit context. According to the RFC (i.e., [20220915_commit_context.md]((https://github.com/kakao/varlog/blob/main/docs/RFCs/20220915_commit_context.md)), the commit context is a pointer of the last commit message to help recover the log stream. Thus, the trim that removes the log entries' prefix does not have to remove the commit context. Moreover, removing a commit context while appending log entries is not trivial since Commit RPC can change the commit context continuously. Updates kakao#125
- Loading branch information
Showing
2 changed files
with
169 additions
and
118 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