diff options
author | Nathan Louie <nathan.louie@10gen.com> | 2018-06-26 11:00:09 -0400 |
---|---|---|
committer | Nathan Louie <nathan.louie@10gen.com> | 2018-07-02 10:58:38 -0400 |
commit | 2f730baf61adae417517c149271576207ce3a210 (patch) | |
tree | eb5bb1244c7182934d3157f6de317fc0d72a619d /src/mongo/db/server_transactions_metrics.cpp | |
parent | 53a34c4f01d6b18df4c4800df9a72b1eff07fb6a (diff) | |
download | mongo-2f730baf61adae417517c149271576207ce3a210.tar.gz |
SERVER-35295 Add total number of committed and aborted transactions to serverStatus
Diffstat (limited to 'src/mongo/db/server_transactions_metrics.cpp')
-rw-r--r-- | src/mongo/db/server_transactions_metrics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/server_transactions_metrics.cpp b/src/mongo/db/server_transactions_metrics.cpp index 5546f184b4e..06f3fa95446 100644 --- a/src/mongo/db/server_transactions_metrics.cpp +++ b/src/mongo/db/server_transactions_metrics.cpp @@ -112,6 +112,8 @@ void ServerTransactionsMetrics::incrementTotalCommitted() { } void ServerTransactionsMetrics::updateStats(TransactionsStats* stats) { + stats->setTotalAborted(_totalAborted.load()); + stats->setTotalCommitted(_totalCommitted.load()); stats->setTotalStarted(_totalStarted.load()); } |