summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorDaniel Morilha <daniel.morilha@mongodb.com>2022-06-30 13:16:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-30 14:11:31 +0000
commitfae8410364c1f02ee62e77076ef60b8ee418368f (patch)
tree9909ee46de6ef7822236a468bfff95a6e61385dd /src/mongo/db/curop.cpp
parent50a8545e444e8bfc7e3892a1319515302b568739 (diff)
downloadmongo-fae8410364c1f02ee62e77076ef60b8ee418368f.tar.gz
SERVER-65987 ServerStatusMetric API refresh
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp6
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