Skip to content

tools/terrier_bench: call TxnCommitted() only after Commit() in Bench2TaskTransfer#843

Open
alterego655 wants to merge 1 commit into
cmu-db:masterfrom
alterego655:fix/terrier-bench-double-commit-metrics
Open

tools/terrier_bench: call TxnCommitted() only after Commit() in Bench2TaskTransfer#843
alterego655 wants to merge 1 commit into
cmu-db:masterfrom
alterego655:fix/terrier-bench-double-commit-metrics

Conversation

@alterego655

Copy link
Copy Markdown
  • Bench2TaskTransfer() calls metrics.TxnCommitted() before txn_manager_->Commit(txn) and again after it, which double-counts on success and miscounts on failure.
  • This pr removes the early call so metrics reflect only successfully committed transactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant