-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
76478: batcheval: add MVCC-compliant `RevertRange` variant r=aliher1911,dt a=erikgrinaker **roachpb: add `isAlone` for `RevertRangeRequest`** Since `RevertRange` mutates MVCC history, we want them to be alone in a batch. The DistSender will split any batches that have multiple such requests. Release note: None **storage: add `NextKeyIgnoringTime()` for `MVCCIncrementalIterator`** This patch adds a method `NextKeyIgnoringTime()` for `MVCCIncrementalIterator`. This can be used to find the next key (as opposed to version) of the iterator, ignoring the time bounds. It's similar to `NextIgnoringTime()`, but calls `NextKey()` instead of `Next()` on the underlying iterator. Release note: None **batcheval: add MVCC-compliant `RevertRange` variant** This adds a new parameter `ExperimentalPreserveHistory` which, rather than clearing keys above the target time, will write new values or tombstones that reflect the state at the target time. For long runs of new keys, this will instead drop an MVCC range tombstone. This makes the command respect e.g. MVCC immutability, the closed timestamp, and timestamp cache. Note that MVCC range tombstones are currently experimental, and as such this parameter is also experimental. Callers must call `storage.CanUseExperimentalMVCCRangeTombstones()` before using it. Resolves #70416. Release note: None Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information
Showing
9 changed files
with
860 additions
and
33 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
Oops, something went wrong.