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/s/query/cluster_client_cursor_impl.cpp | |
parent | 50a8545e444e8bfc7e3892a1319515302b568739 (diff) | |
download | mongo-fae8410364c1f02ee62e77076ef60b8ee418368f.tar.gz |
SERVER-65987 ServerStatusMetric API refresh
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor_impl.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor_impl.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_impl.cpp b/src/mongo/s/query/cluster_client_cursor_impl.cpp index 73be5a7512a..b08a807788c 100644 --- a/src/mongo/s/query/cluster_client_cursor_impl.cpp +++ b/src/mongo/s/query/cluster_client_cursor_impl.cpp @@ -27,8 +27,6 @@ * it in the license file. */ -#include "mongo/platform/basic.h" - #include "mongo/s/query/cluster_client_cursor_impl.h" #include <memory> @@ -41,12 +39,8 @@ namespace mongo { -static Counter64 mongosCursorStatsTotalOpened; -static Counter64 mongosCursorStatsMoreThanOneBatch; -static ServerStatusMetricField<Counter64> displayMongosCursorStatsTotalOpened( - "mongos.cursor.totalOpened", &mongosCursorStatsTotalOpened); -static ServerStatusMetricField<Counter64> displayMongosCursorStatsMoreThanOneBatch( - "mongos.cursor.moreThanOneBatch", &mongosCursorStatsMoreThanOneBatch); +static CounterMetric mongosCursorStatsTotalOpened("mongos.cursor.totalOpened"); +static CounterMetric mongosCursorStatsMoreThanOneBatch("mongos.cursor.moreThanOneBatch"); ClusterClientCursorGuard ClusterClientCursorImpl::make( OperationContext* opCtx, |