-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloud_storage: Read offset arrays when creating coarse index
When creating coarse index, in addition to reading the index fields, we also read the offset fields. This ensures that in cases where the index is very small and all the data is contained in the offset fields, a mini index can still be generated. Additionally the calculation of offsets to add in the index is changed so that we do not end up skipping offsets when the mod of current offset is unchanged, which is a bug that the previous iteration of the code was susceptible to.
- Loading branch information
Showing
3 changed files
with
117 additions
and
21 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