diff options
Diffstat (limited to 'src/mongo/db/commands/count_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/count_cmd.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mongo/db/commands/count_cmd.cpp b/src/mongo/db/commands/count_cmd.cpp index 85a6e1f02c8..91ba0169b0c 100644 --- a/src/mongo/db/commands/count_cmd.cpp +++ b/src/mongo/db/commands/count_cmd.cpp @@ -152,11 +152,8 @@ public: // version on initial entry into count. auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getMetadata(); - auto statusWithPlanExecutor = getExecutorCount(opCtx, - collection, - request.getValue(), - true, // explain - PlanExecutor::YIELD_AUTO); + auto statusWithPlanExecutor = + getExecutorCount(opCtx, collection, request.getValue(), true /*explain*/); if (!statusWithPlanExecutor.isOK()) { return statusWithPlanExecutor.getStatus(); } @@ -207,11 +204,8 @@ public: // version on initial entry into count. auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getMetadata(); - auto statusWithPlanExecutor = getExecutorCount(opCtx, - collection, - request.getValue(), - false, // !explain - PlanExecutor::YIELD_AUTO); + auto statusWithPlanExecutor = + getExecutorCount(opCtx, collection, request.getValue(), false /*explain*/); if (!statusWithPlanExecutor.isOK()) { return CommandHelpers::appendCommandStatus(result, statusWithPlanExecutor.getStatus()); } |