diff options
Diffstat (limited to 'src/mongo/db/exec/cached_plan.cpp')
-rw-r--r-- | src/mongo/db/exec/cached_plan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/cached_plan.cpp b/src/mongo/db/exec/cached_plan.cpp index fd371a3c6c7..3106994547e 100644 --- a/src/mongo/db/exec/cached_plan.cpp +++ b/src/mongo/db/exec/cached_plan.cpp @@ -115,7 +115,7 @@ Status CachedPlanStage::pickBestPlan(PlanYieldPolicy* yieldPolicy) { return Status::OK(); } else if (PlanStage::NEED_YIELD == state) { if (id == WorkingSet::INVALID_ID) { - if (!yieldPolicy->allowedToYield()) { + if (!yieldPolicy->canAutoYield()) { throw WriteConflictException(); } } else { @@ -125,7 +125,7 @@ Status CachedPlanStage::pickBestPlan(PlanYieldPolicy* yieldPolicy) { _fetcher.reset(member->releaseFetcher()); } - if (yieldPolicy->allowedToYield()) { + if (yieldPolicy->canAutoYield()) { yieldPolicy->forceYield(); } |