summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/distinct_scan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/distinct_scan.cpp')
-rw-r--r--src/mongo/db/exec/distinct_scan.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/exec/distinct_scan.cpp b/src/mongo/db/exec/distinct_scan.cpp
index 972419c810f..af7d3c49cfa 100644
--- a/src/mongo/db/exec/distinct_scan.cpp
+++ b/src/mongo/db/exec/distinct_scan.cpp
@@ -29,6 +29,8 @@
#include "mongo/db/exec/distinct_scan.h"
+#include <memory>
+
#include "mongo/db/catalog/index_catalog.h"
#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/exec/filter.h"
@@ -36,13 +38,11 @@
#include "mongo/db/exec/working_set_computed_data.h"
#include "mongo/db/index/index_access_method.h"
#include "mongo/db/index/index_descriptor.h"
-#include "mongo/stdx/memory.h"
namespace mongo {
using std::unique_ptr;
using std::vector;
-using stdx::make_unique;
// static
const char* DistinctScan::kStageType = "DISTINCT_SCAN";
@@ -160,8 +160,9 @@ unique_ptr<PlanStageStats> DistinctScan::getStats() {
_specificStats.indexBounds = _bounds.toBSON();
}
- unique_ptr<PlanStageStats> ret = make_unique<PlanStageStats>(_commonStats, STAGE_DISTINCT_SCAN);
- ret->specific = make_unique<DistinctScanStats>(_specificStats);
+ unique_ptr<PlanStageStats> ret =
+ std::make_unique<PlanStageStats>(_commonStats, STAGE_DISTINCT_SCAN);
+ ret->specific = std::make_unique<DistinctScanStats>(_specificStats);
return ret;
}