diff options
Diffstat (limited to 'src/mongo/db/query/plan_explainer_impl.cpp')
| -rw-r--r-- | src/mongo/db/query/plan_explainer_impl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_explainer_impl.cpp b/src/mongo/db/query/plan_explainer_impl.cpp index a67c9e98a60..1e34cf73ebe 100644 --- a/src/mongo/db/query/plan_explainer_impl.cpp +++ b/src/mongo/db/query/plan_explainer_impl.cpp @@ -655,6 +655,7 @@ boost::optional<double> getWinningPlanScore(PlanStage* root) { void PlanExplainerImpl::getSummaryStats(PlanSummaryStats* statsOut) const { invariant(statsOut); + // We can get some of the fields we need from the common stats stored in the // root stage of the plan tree. const CommonStats* common = _root->getCommonStats(); @@ -667,9 +668,6 @@ void PlanExplainerImpl::getSummaryStats(PlanSummaryStats* statsOut) const { statsOut->totalKeysExamined = 0; statsOut->totalDocsExamined = 0; - statsOut->indexesUsed.clear(); - statsOut->collectionScans = 0; - statsOut->collectionScansNonTailable = 0; for (size_t i = 0; i < stages.size(); i++) { statsOut->totalKeysExamined += |
