summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/dbcommands_d.cpp1
-rw-r--r--src/mongo/db/commands/find_cmd.cpp12
2 files changed, 11 insertions, 2 deletions
diff --git a/src/mongo/db/commands/dbcommands_d.cpp b/src/mongo/db/commands/dbcommands_d.cpp
index 67a1549b4fc..c2ae35541ea 100644
--- a/src/mongo/db/commands/dbcommands_d.cpp
+++ b/src/mongo/db/commands/dbcommands_d.cpp
@@ -302,6 +302,7 @@ public:
auto exec = uassertStatusOK(getExecutor(opCtx,
&coll,
std::move(cq),
+ nullptr /* extractAndAttachPipelineStages */,
PlanYieldPolicy::YieldPolicy::YIELD_MANUAL,
QueryPlannerParams::NO_TABLE_SCAN));
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp
index a684f314bfe..4120b38cd6d 100644
--- a/src/mongo/db/commands/find_cmd.cpp
+++ b/src/mongo/db/commands/find_cmd.cpp
@@ -354,7 +354,11 @@ public:
// Get the execution plan for the query.
bool permitYield = true;
auto exec =
- uassertStatusOK(getExecutorFind(opCtx, &collection, std::move(cq), permitYield));
+ uassertStatusOK(getExecutorFind(opCtx,
+ &collection,
+ std::move(cq),
+ nullptr /* extractAndAttachPipelineStages */,
+ permitYield));
auto bodyBuilder = result->getBodyBuilder();
// Got the execution tree. Explain it.
@@ -489,7 +493,11 @@ public:
// Get the execution plan for the query.
bool permitYield = true;
auto exec =
- uassertStatusOK(getExecutorFind(opCtx, &collection, std::move(cq), permitYield));
+ uassertStatusOK(getExecutorFind(opCtx,
+ &collection,
+ std::move(cq),
+ nullptr /* extractAndAttachPipelineStages */,
+ permitYield));
{
stdx::lock_guard<Client> lk(*opCtx->getClient());