-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: fix interaction between no-op optimizations and RangeKeyChanged
Previously, RangeKeyChanged could report a false negative when an iterator hit a no-op seek optimization. These seek optimizations avoid repositioning the iterator in cases of repeated, monotonically shifting seek keys. These optimizations reuse the current iterator state for the next position. If the previous iterator operation was a no-op SetOptions or SetBounds call and the last seek operation resulted in RangeKeyChanged()=false the iterator could falsely preserve the RangeKeyChanged()=false state after the no-op seek operation. The first seek call to return a range key after a SetOptions or SetBounds call must return RangeKeyChanged()=true. Close #1950. Close #1952.
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 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