diff options
Diffstat (limited to 'src/mongo/db/s/split_chunk_command.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk_command.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/s/split_chunk_command.cpp b/src/mongo/db/s/split_chunk_command.cpp index a2009bdf53b..01e712cf95b 100644 --- a/src/mongo/db/s/split_chunk_command.cpp +++ b/src/mongo/db/s/split_chunk_command.cpp @@ -73,13 +73,13 @@ bool checkIfSingleDoc(OperationContext* opCtx, BSONObj newmin = Helpers::toKeyFormat(kp.extendRangeBound(chunk->getMin(), false)); BSONObj newmax = Helpers::toKeyFormat(kp.extendRangeBound(chunk->getMax(), true)); - unique_ptr<PlanExecutor> exec(InternalPlanner::indexScan(opCtx, - collection, - idx, - newmin, - newmax, - BoundInclusion::kIncludeStartKeyOnly, - PlanExecutor::YIELD_MANUAL)); + auto exec = InternalPlanner::indexScan(opCtx, + collection, + idx, + newmin, + newmax, + BoundInclusion::kIncludeStartKeyOnly, + PlanExecutor::NO_YIELD); // check if exactly one document found PlanExecutor::ExecState state; BSONObj obj; |