diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-08-03 12:17:47 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-08-04 16:12:30 -0400 |
commit | be8a683771004a2541c730a1ac0e35cd13e03a8b (patch) | |
tree | 20b31de1fea9f59011899b568771f069327f113f /src/mongo/db/query/internal_plans.cpp | |
parent | 84182ff1575cbe868a89e7209f12ca665f4bda19 (diff) | |
download | mongo-be8a683771004a2541c730a1ac0e35cd13e03a8b.tar.gz |
SERVER-19364 move query stage OperationContext pointer management into the base class
Diffstat (limited to 'src/mongo/db/query/internal_plans.cpp')
-rw-r--r-- | src/mongo/db/query/internal_plans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/internal_plans.cpp b/src/mongo/db/query/internal_plans.cpp index f85b8723b3b..07f0a39c927 100644 --- a/src/mongo/db/query/internal_plans.cpp +++ b/src/mongo/db/query/internal_plans.cpp @@ -50,7 +50,7 @@ std::unique_ptr<PlanExecutor> InternalPlanner::collectionScan(OperationContext* std::unique_ptr<WorkingSet> ws = stdx::make_unique<WorkingSet>(); if (NULL == collection) { - std::unique_ptr<EOFStage> eof = stdx::make_unique<EOFStage>(); + auto eof = stdx::make_unique<EOFStage>(txn); // Takes ownership of 'ws' and 'eof'. auto statusWithPlanExecutor = PlanExecutor::make( txn, std::move(ws), std::move(eof), ns.toString(), PlanExecutor::YIELD_MANUAL); |