diff options
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
| -rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 6811bb958da..4ce8c38e5f2 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -201,7 +201,7 @@ public: Collection* const collection = ctx->getCollection(); // We have a parsed query. Time to get the execution plan for it. - auto statusWithPlanExecutor = getExecutorFind(opCtx, collection, nss, std::move(cq)); + auto statusWithPlanExecutor = getExecutorFind(opCtx, collection, std::move(cq)); if (!statusWithPlanExecutor.isOK()) { return statusWithPlanExecutor.getStatus(); } @@ -312,7 +312,7 @@ public: Collection* const collection = ctx->getCollection(); // Get the execution plan for the query. - auto statusWithPlanExecutor = getExecutorFind(opCtx, collection, nss, std::move(cq)); + auto statusWithPlanExecutor = getExecutorFind(opCtx, collection, std::move(cq)); uassertStatusOK(statusWithPlanExecutor.getStatus()); auto exec = std::move(statusWithPlanExecutor.getValue()); |
