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.
76110: kvserver: add merged `SSTTimestampToRequestTimestamp` param for `AddSSTable` r=aliher1911 a=erikgrinaker **hlc: add `Timestamp.IsSet()`** This patch adds `Timestamp.IsSet()`, which is the inverse of `IsEmpty()`. In complex boolean expressions, `IsSet()` is significantly easier to parse than `!IsEmpty()`, which can avoid mistakes. Release note: None **testutils/sstutil: tweak `MakeSST()` parameters** This makes `testing.T` the first parameter, as is customary, and replaces the unnecessary `Context` parameter with a background context as this is only used for logging. Release note: None **kvserver: add merged `UpdateToRequestTimestamp` param for `AddSSTable`** This merges the `AddSSTable` parameters `WriteAtRequestTimestamp` and `SSTTimestamp` into a new `SSTTimestampToRequestTimestamp` parameter. This parameter specifies the MVCC timestamp of all existing timestamps in the SST, which will be rewritten to the request timestamp if they differ (e.g. if the request gets pushed). Both of the replaced parameters are new in 22.1, so this does not require a version gate and allows changing the type of one of the existing Protobuf fields. Release note: None Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information
Showing
17 changed files
with
357 additions
and
336 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
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.