diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-09-22 10:57:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-22 11:55:02 +0000 |
commit | 28fa5831f7b8e7b6ca1ea84fc7bcc7389b2a0ea4 (patch) | |
tree | aefcd1eb910f2ad27af4c6034275870415145b04 /src/mongo/db/commands/find_cmd.cpp | |
parent | 7ff8d8762cd47376e16f67e712a8f69d95d3689d (diff) | |
download | mongo-28fa5831f7b8e7b6ca1ea84fc7bcc7389b2a0ea4.tar.gz |
SERVER-58427 Implement pushdown of $group for plans with one solution
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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()); |