diff options
author | Daniel Morilha <daniel.morilha@mongodb.com> | 2022-06-30 13:16:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-30 14:11:31 +0000 |
commit | fae8410364c1f02ee62e77076ef60b8ee418368f (patch) | |
tree | 9909ee46de6ef7822236a468bfff95a6e61385dd /src/mongo/db/curop.cpp | |
parent | 50a8545e444e8bfc7e3892a1319515302b568739 (diff) | |
download | mongo-fae8410364c1f02ee62e77076ef60b8ee418368f.tar.gz |
SERVER-65987 ServerStatusMetric API refresh
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 6fc209bd270..bd15b40232c 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -30,8 +30,6 @@ // CHECK_LOG_REDACTION -#include "mongo/platform/basic.h" - #include "mongo/db/curop.h" #include <iomanip> @@ -69,9 +67,7 @@ using std::string; namespace { -TimerStats oplogGetMoreStats; -ServerStatusMetricField<TimerStats> displayBatchesReceived("repl.network.oplogGetMoresProcessed", - &oplogGetMoreStats); +auto& oplogGetMoreStats = makeServerStatusMetric<TimerStats>("repl.network.oplogGetMoresProcessed"); } // namespace |