-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
broker: slightly relax offset skips from byte zero
Seek forward a journal read at offset zero, to a first persisted fragment of the journal. This improves the ergonomics of a fairly common case where all data is deleted from an idle journal (for example, because of bucket lifecycle), and then new writes arrive, and a new reader is trying to read the journal from "the beginning". For this special case, we'd like reads to proceed forward as soon as a persisted fragment is available in the index without waiting for the full offsetJumpAgeThreshold.
- Loading branch information
1 parent
44cd5a4
commit c0c7b24
Showing
2 changed files
with
39 additions
and
13 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