-
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: properly mark r/o txns as committed
Readonly txns have a special commit path. This path wasn't marking the txn as committed correctly, which had a couple of consequences: - db.Txn() would potentially try to commit again, in case the closure already did it - the txn.aborted metric was incremented Fixes #31595 Release note: Fix a bug causing committed read-only txns to be counted as aborted in the metrics.
- Loading branch information
1 parent
1f852af
commit a85115a
Showing
3 changed files
with
20 additions
and
11 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