-
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.
sstable: fix interaction between bpf and monotonic bounds optimization
The sstable iterator has an optimization for when iterator bounds are moved monotonically forward or backward. The first seek after the bounds adjustment can reuse the existing iterator position to avoid a more expensive full seek. In iterators over sstables with two-level indexes, this optimization could interact with block-property filters, improperly allowing the second seek after the bounds adjustment to also reuse the existing iterator position. If the second seek key was smaller than the first seek key, the iterator would skip keys. Informs #1963. Informs cockroachdb/cockroach#88296.
- Loading branch information
Showing
3 changed files
with
144 additions
and
2 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