summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r--src/mongo/db/commands/run_aggregate.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp
index ddbe5b2b0f1..13dd0243a7d 100644
--- a/src/mongo/db/commands/run_aggregate.cpp
+++ b/src/mongo/db/commands/run_aggregate.cpp
@@ -28,8 +28,6 @@
*/
-#include "mongo/platform/basic.h"
-
#include "mongo/db/commands/run_aggregate.h"
#include <boost/optional.hpp>
@@ -101,12 +99,9 @@ using std::string;
using std::stringstream;
using std::unique_ptr;
-Counter64 allowDiskUseFalseCounter;
+CounterMetric allowDiskUseFalseCounter("query.allowDiskUseFalse");
namespace {
-ServerStatusMetricField<Counter64> allowDiskUseMetric{"query.allowDiskUseFalse",
- &allowDiskUseFalseCounter};
-
/**
* If a pipeline is empty (assuming that a $cursor stage hasn't been created yet), it could mean
* that we were able to absorb all pipeline stages and pull them into a single PlanExecutor. So,