summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/count_cmd.cpp
diff options
context:
space:
mode:
authorAnton Korshunov <anton.korshunov@mongodb.com>2019-02-27 16:22:31 +0000
committerAnton Korshunov <anton.korshunov@mongodb.com>2019-04-03 12:19:22 +0100
commitd47bbc343af0b5bbde7b810f63e6b3404ea9e4d6 (patch)
treee2778eef1df27012e2540d3333ec95184d359fff /src/mongo/db/commands/count_cmd.cpp
parent6c2bd4b1be257ba7b9335e40c2af18ff25b7fcdd (diff)
downloadmongo-d47bbc343af0b5bbde7b810f63e6b3404ea9e4d6.tar.gz
SERVER-24860 Optimize away entire pipeline if it can be answered using a query
Diffstat (limited to 'src/mongo/db/commands/count_cmd.cpp')
-rw-r--r--src/mongo/db/commands/count_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/count_cmd.cpp b/src/mongo/db/commands/count_cmd.cpp
index 360fb2f3128..72ce0734bea 100644
--- a/src/mongo/db/commands/count_cmd.cpp
+++ b/src/mongo/db/commands/count_cmd.cpp
@@ -174,7 +174,7 @@ public:
auto exec = std::move(statusWithPlanExecutor.getValue());
auto bodyBuilder = result->getBodyBuilder();
- Explain::explainStages(exec.get(), collection, verbosity, &bodyBuilder);
+ Explain::explainStages(exec.get(), collection, verbosity, BSONObj(), &bodyBuilder);
return Status::OK();
}