diff options
Diffstat (limited to 'src/mongo/db/exec/merge_sort.cpp')
-rw-r--r-- | src/mongo/db/exec/merge_sort.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/exec/merge_sort.cpp b/src/mongo/db/exec/merge_sort.cpp index ba01adee76f..8ab56f2b7ad 100644 --- a/src/mongo/db/exec/merge_sort.cpp +++ b/src/mongo/db/exec/merge_sort.cpp @@ -29,11 +29,12 @@ #include "mongo/db/exec/merge_sort.h" +#include <memory> + #include "mongo/db/exec/scoped_timer.h" #include "mongo/db/exec/working_set.h" #include "mongo/db/exec/working_set_common.h" #include "mongo/db/query/collation/collator_interface.h" -#include "mongo/stdx/memory.h" #include "mongo/util/str.h" namespace mongo { @@ -42,7 +43,6 @@ using std::list; using std::string; using std::unique_ptr; using std::vector; -using stdx::make_unique; // static const char* MergeSortStage::kStageType = "SORT_MERGE"; @@ -204,8 +204,9 @@ unique_ptr<PlanStageStats> MergeSortStage::getStats() { _specificStats.sortPattern = _pattern; - unique_ptr<PlanStageStats> ret = make_unique<PlanStageStats>(_commonStats, STAGE_SORT_MERGE); - ret->specific = make_unique<MergeSortStats>(_specificStats); + unique_ptr<PlanStageStats> ret = + std::make_unique<PlanStageStats>(_commonStats, STAGE_SORT_MERGE); + ret->specific = std::make_unique<MergeSortStats>(_specificStats); for (size_t i = 0; i < _children.size(); ++i) { ret->children.emplace_back(_children[i]->getStats()); } |