-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metamorphic: fix time-bound filtering
In 8a1bd36 the filterMin and filterMax fields were converted to encoded suffixes so that they could accommodate more complex representations of timestamps, including those used by the CockroachDB key format. The commit in 8a1bd36 inadvertently inverted the meaning of filterMin and filterMax due to the descending ordering of timestamp suffixes. This accidentally inverted the comparisons in SkipPoint, resulting in excessive filtering. This commit defines filterMin as the suffix that sorts smaller [the one with a larger timestamp], and filterMax as the suffix that sorts larger [the one with a smaller timestamp]. The ordering of these fields in serialized ops is reversed so that parsing an ops file produced by a previous Pebble version populates the appropriate field. Assertions and comments are updated to clarify the ordering of filterMin, filterMax throughput.
- Loading branch information
Showing
5 changed files
with
62 additions
and
24 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
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