summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/get_runner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/get_runner.cpp')
-rw-r--r--src/mongo/db/query/get_runner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/get_runner.cpp b/src/mongo/db/query/get_runner.cpp
index 8436dff3164..b95c431caf0 100644
--- a/src/mongo/db/query/get_runner.cpp
+++ b/src/mongo/db/query/get_runner.cpp
@@ -397,7 +397,10 @@ namespace mongo {
// Owns none of the arguments
multiPlanStage->addPlan(solutions[ix], nextPlanRoot, sharedWorkingSet);
}
+
multiPlanStage->pickBestPlan();
+ multiPlanStage->generateCandidateStats();
+
*out = new SingleSolutionRunner(collection,
canonicalQuery.release(),
multiPlanStage->bestSolution(),