summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/commands/dbcommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp
index 228b206da51..262974fc507 100644
--- a/src/mongo/db/commands/dbcommands.cpp
+++ b/src/mongo/db/commands/dbcommands.cpp
@@ -467,7 +467,7 @@ public:
result.append("millis", timer.millis());
return 1;
}
- exec = InternalPlanner::collectionScan(opCtx, ns, collection, PlanExecutor::NO_YIELD);
+ exec = InternalPlanner::collectionScan(opCtx, ns, collection, PlanExecutor::YIELD_AUTO);
} else if (min.isEmpty() || max.isEmpty()) {
errmsg = "only one of min or max specified";
return false;
@@ -497,7 +497,7 @@ public:
min,
max,
BoundInclusion::kIncludeStartKeyOnly,
- PlanExecutor::NO_YIELD);
+ PlanExecutor::YIELD_AUTO);
}
long long avgObjSize = collection->dataSize(opCtx) / numRecords;