diff options
Diffstat (limited to 'src/mongo/db/exec/multi_plan.cpp')
-rw-r--r-- | src/mongo/db/exec/multi_plan.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/exec/multi_plan.cpp b/src/mongo/db/exec/multi_plan.cpp index 18188ab6b68..1f50464039a 100644 --- a/src/mongo/db/exec/multi_plan.cpp +++ b/src/mongo/db/exec/multi_plan.cpp @@ -65,8 +65,7 @@ MultiPlanStage::MultiPlanStage(OperationContext* txn, const Collection* collection, CanonicalQuery* cq, bool shouldCache) - : PlanStage(kStageType), - _txn(txn), + : PlanStage(kStageType, txn), _collection(collection), _shouldCache(shouldCache), _query(cq), @@ -219,7 +218,7 @@ Status MultiPlanStage::pickBestPlan(PlanYieldPolicy* yieldPolicy) { // make sense. ScopedTimer timer(&_commonStats.executionTimeMillis); - size_t numWorks = getTrialPeriodWorks(_txn, _collection); + size_t numWorks = getTrialPeriodWorks(getOpCtx(), _collection); size_t numResults = getTrialPeriodNumToReturn(*_query); // Work the plans, stopping when a plan hits EOF or returns some @@ -388,10 +387,6 @@ bool MultiPlanStage::workAllPlans(size_t numResults, PlanYieldPolicy* yieldPolic return !doneWorking; } -void MultiPlanStage::doReattachToOperationContext(OperationContext* opCtx) { - _txn = opCtx; -} - namespace { void invalidateHelper(OperationContext* txn, |