diff options
Diffstat (limited to 'src/mongo/db/server_transactions_metrics.cpp')
-rw-r--r-- | src/mongo/db/server_transactions_metrics.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/server_transactions_metrics.cpp b/src/mongo/db/server_transactions_metrics.cpp index f02d644c0c0..11f6480d887 100644 --- a/src/mongo/db/server_transactions_metrics.cpp +++ b/src/mongo/db/server_transactions_metrics.cpp @@ -1,4 +1,3 @@ - /** * Copyright (C) 2018-present MongoDB, Inc. * @@ -311,18 +310,19 @@ void ServerTransactionsMetrics::clearOpTimes() { _oldestNonMajorityCommittedOpTimes.clear(); } +namespace { class TransactionsSSS : public ServerStatusSection { public: TransactionsSSS() : ServerStatusSection("transactions") {} - virtual ~TransactionsSSS() {} + ~TransactionsSSS() override = default; - virtual bool includeByDefault() const { + bool includeByDefault() const override { return true; } - virtual BSONObj generateSection(OperationContext* opCtx, - const BSONElement& configElement) const { + BSONObj generateSection(OperationContext* opCtx, + const BSONElement& configElement) const override { TransactionsStats stats; // Retryable writes and multi-document transactions metrics are both included in the same @@ -335,5 +335,6 @@ public: } } transactionsSSS; +} // namespace } // namespace mongo |