-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: fix incorrect range key mask in virtualLast()
Previously, when a virtual sstable's iterator was SeekLT'd past its end key or had Last() called on it, and the virtual sstable had an inclusive end bound, we'd do a SeekGE on the end key in `virtualLast()`. This had the potential of being inconsistent with the rest of the iterator stack on the positioning of the BoundLimitedBlockPropertyFilter in range-key combined iteration with range key masking enabled, as the sstable iterator expects that to always be set to a range key that's behind of us in the direction we're iterating in. This saves some key comparisons when checking for whether the current key is masked. This change implements a SeekLE() that can be used for this corner case. Fixes #3128.
- Loading branch information
Showing
4 changed files
with
244 additions
and
45 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
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