-
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.
kvserver: use timestamp cache to mark and check txn records
Potential 1PC transactions must currently check for an existing transaction record on disk. This patch overloads the timestamp cache tombstone markers to also mark heartbeated transaction records, which allows 1PC transaction to check this in the timestamp cache instead via `CanCreateTxnRecord()`. However, the overloading is not able to distinguish between a failure due to an existing record and one due to a finalized transaction, so it falls back to 2PC `EndTxn` evaluation to make this determination by checking the record on disk and returning an appropriate error. Release note: None
- Loading branch information
1 parent
4225c2d
commit 489edcf
Showing
3 changed files
with
60 additions
and
36 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