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.
kv: don't require consensus for no-op EndTxn commit/abort
Before this commit, EndTxn requests that hit the auto-GC path, did not resolve any intents, and also did not find an existing transaction record would still write a tombstone over their transaction record. This would force them to go through Raft and miss the fast-path to skip consensus added in 6fcb3db. This commit ensures that a tombstone is not written over a non-existing transaction record, which allows this case to avoid Raft altogether.
- Loading branch information
1 parent
486f3ee
commit 9f8c019
Showing
2 changed files
with
59 additions
and
5 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