-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/keyspan: Emit empty spans where there are no range keys
This change updates keyspan.LevelIter to emit empty Spans (i.e. spans with valid start/end but no values/Keys) between files. This is used as an optimization to avoid loading the next file after a file has been exhausted. To preserve this optimization up the iterator stack, the merging iter and defragmenting iter were also updated to special-case empty spans returned by child iterators and preserve them as-is instead of defragmenting them or iterating beyond them. The top-level Iterator was also updated to elide rangekey boundary keys that correspond to empty spans that do not cover any point keys. Fixes #1605
- Loading branch information
Showing
11 changed files
with
667 additions
and
92 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.