forked from cockroachdb/pebble
-
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.
*: add skip-shared iteration mode to ScanInternal
This change adds a skip-shared iteration mode to ScanInternal(), allowing the caller to pass in a Visitor function to expose files in shareable levels (defined as L5 and below) instead of individually visiting all the keys in those files. The file's bounds are truncated to keys within the scan bounds before calling the visitor function. If a file in a shareable level is not marked as shared according to objstorage.Provider, we return a special error, allowing the caller to restart scanning in non-skip-shared mode or so. This change also updates ScanInternal to do point-key collapsing, so we return only one point at most per user key.
- Loading branch information
Showing
9 changed files
with
1,209 additions
and
357 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
Oops, something went wrong.