-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base: make comparer tolerate empty keys
When synthetic prefix is used, we can trim the synthetic prefix from a given seek key and compare it with the "bare" key in a table. After trimming the key prefix can become "empty" (with just the terminator left). This change extends the comparer test suite to check that we can remove leading bytes from prefixes and adjusts the testkeys and crdb comparers. Fixes #3906
- Loading branch information
1 parent
d73ab80
commit 01dcf57
Showing
3 changed files
with
16 additions
and
22 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