summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/get_executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/get_executor.cpp')
-rw-r--r--src/mongo/db/query/get_executor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/query/get_executor.cpp b/src/mongo/db/query/get_executor.cpp
index 84ab8649f2f..dd6af8d52cc 100644
--- a/src/mongo/db/query/get_executor.cpp
+++ b/src/mongo/db/query/get_executor.cpp
@@ -657,8 +657,7 @@ StatusWith<unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorFind(
if (ShardingState::get(opCtx)->needCollectionMetadata(opCtx, nss.ns())) {
plannerOptions |= QueryPlannerParams::INCLUDE_SHARD_FILTER;
}
- return getExecutor(
- opCtx, collection, std::move(canonicalQuery), PlanExecutor::YIELD_AUTO, plannerOptions);
+ return getExecutor(opCtx, collection, std::move(canonicalQuery), yieldPolicy, plannerOptions);
}
namespace {