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.
127668: storage: add OriginTimestamp to MVCCValueHeader r=raduberinde a=msbutler This patch adds a new OriginTimestamp field to the MVCCValueHeader which will identify the timestamp the kv was written on the original source cluster during Logical Data Replication. Note that the Timestamp is marshalled as a pointer to avoid the overhead of storing an empty Timestamp in the value header proto, a known limitation of gogoproto. In future patches, we will actually bind the origin timestamp here during LDR ingestion and use it to conduct large scale fingerprinting and LWW conflict resolution. Epic: none Release note: none Co-authored-by: Michael Butler <[email protected]>
- Loading branch information
Showing
13 changed files
with
109 additions
and
21 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
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
2 changes: 1 addition & 1 deletion
2
pkg/storage/testdata/TestEncodeDecodeMVCCValue/headerFull_bytes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000008650a020809200328010000000003666f6f | ||
encoded: 00000016650a02080920032801320c08ffffffffffffffff7f10010000000003666f6f |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000008650a02080920032801000000000122 | ||
encoded: 00000016650a02080920032801320c08ffffffffffffffff7f1001000000000122 |
2 changes: 1 addition & 1 deletion
2
pkg/storage/testdata/TestEncodeDecodeMVCCValue/headerFull_tombstone
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000008650a02080920032801 | ||
encoded: 00000016650a02080920032801320c08ffffffffffffffff7f1001 |
3 changes: 3 additions & 0 deletions
3
pkg/storage/testdata/TestEncodeDecodeMVCCValue/headerOriginTsOnly_bytes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000010650a00320c08ffffffffffffffff7f10010000000003666f6f |
3 changes: 3 additions & 0 deletions
3
pkg/storage/testdata/TestEncodeDecodeMVCCValue/headerOriginTsOnly_int
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000010650a00320c08ffffffffffffffff7f1001000000000122 |
3 changes: 3 additions & 0 deletions
3
pkg/storage/testdata/TestEncodeDecodeMVCCValue/headerOriginTsOnly_tombstone
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo | ||
---- | ||
encoded: 00000010650a00320c08ffffffffffffffff7f1001 |