diff options
author | Nathan Louie <nathan.louie@10gen.com> | 2018-06-19 23:39:43 -0400 |
---|---|---|
committer | Nathan Louie <nathan.louie@10gen.com> | 2018-06-25 17:13:55 -0400 |
commit | cec7de9fdbfafbbae19ff8fc3194a5573ab6b744 (patch) | |
tree | b9b8b24e057b587b62fe42a5097da367aa5f344a /src/mongo/db/server_transactions_metrics.cpp | |
parent | a21c7c7e0d0dcd7bd9b11d62f95ec6496bc617e8 (diff) | |
download | mongo-cec7de9fdbfafbbae19ff8fc3194a5573ab6b744.tar.gz |
SERVER-35292 Add total number of started 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, 1 insertions, 1 deletions
diff --git a/src/mongo/db/server_transactions_metrics.cpp b/src/mongo/db/server_transactions_metrics.cpp index 07319300f74..64411409672 100644 --- a/src/mongo/db/server_transactions_metrics.cpp +++ b/src/mongo/db/server_transactions_metrics.cpp @@ -88,7 +88,7 @@ void ServerTransactionsMetrics::incrementTotalCommitted() { } void ServerTransactionsMetrics::updateStats(TransactionsStats* stats) { - // This is a dummy function until we start tracking global transactions metrics. + stats->setTotalStarted(_totalStarted.load()); } class TransactionsSSS : public ServerStatusSection { |