diff options
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r-- | src/mongo/db/commands/run_aggregate.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp index 8c1be73e152..b866688ce21 100644 --- a/src/mongo/db/commands/run_aggregate.cpp +++ b/src/mongo/db/commands/run_aggregate.cpp @@ -34,6 +34,7 @@ #include "mongo/db/commands/run_aggregate.h" #include <boost/optional.hpp> +#include <memory> #include <vector> #include "mongo/db/auth/authorization_session.h" @@ -71,7 +72,6 @@ #include "mongo/db/transaction_participant.h" #include "mongo/db/views/view.h" #include "mongo/db/views/view_catalog.h" -#include "mongo/stdx/memory.h" #include "mongo/util/log.h" #include "mongo/util/scopeguard.h" #include "mongo/util/string_map.h" @@ -84,7 +84,6 @@ using std::shared_ptr; using std::string; using std::stringstream; using std::unique_ptr; -using stdx::make_unique; namespace { /** @@ -475,10 +474,10 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> createOuterPipelineProxyExe std::unique_ptr<Pipeline, PipelineDeleter> pipeline, bool hasChangeStream) { // Transfer ownership of the Pipeline to the PipelineProxyStage. - auto ws = make_unique<WorkingSet>(); + auto ws = std::make_unique<WorkingSet>(); auto proxy = hasChangeStream - ? make_unique<ChangeStreamProxyStage>(opCtx, std::move(pipeline), ws.get()) - : make_unique<PipelineProxyStage>(opCtx, std::move(pipeline), ws.get()); + ? std::make_unique<ChangeStreamProxyStage>(opCtx, std::move(pipeline), ws.get()) + : std::make_unique<PipelineProxyStage>(opCtx, std::move(pipeline), ws.get()); // This PlanExecutor will simply forward requests to the Pipeline, so does not need // to yield or to be registered with any collection's CursorManager to receive |