-
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.
kv: fix a buglet in SetSystemConfigTrigger and cleanup
We were asking for the system config trigger to be executed on EndTransaction even when we had failed to anchor the transaction on the system config range. I think this was benign we weren't actually committing the transactions for which SetSystemConfigTrigger() returned errors. I've also cleaned up the code a bit. Before this patch, there was a systemConfigTrigger field on both the Txn and the TxnCoordSender. However, the TxnCoordSender didn't actually know anything about any trigger; it is just concerned with the anchoring of the transaction on the system config range. I've clarified this point. Release note: None
- Loading branch information
1 parent
e3e370a
commit 3d26bc5
Showing
4 changed files
with
50 additions
and
26 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