forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
124866: backupccl: add keyRewriter.RewriteSpan r=dt a=dt Span bounds should always be rewritten, even when they fall within the tables for which individual keys are elided during a restore, such as the liveness table. This elision is typically controlled by the key rewriter returning false for keys in these tables, indicating that they should not be restored. However if it returns false when one of these keys appears as a span boundary, we still want to rewrite it. Previously when the rewrite of one of these keys incorrectly returned false, we would return false from rewriteSpan. Unfortunately, this early return was done quietly, leaving the span half rewritten. This pulls span rewriting into the key rewriter, parameterizing various methods to know when they are rewriting span bounds versus keys, so that they only check for and return false for keys in the elided tables when rewriting a key and not a span. Release note: none. Epic: none. Co-authored-by: David Taylor <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
23 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