summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/subplan.cpp
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2022-04-07 09:12:51 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-07 10:08:29 +0000
commita9d10207448a5d1eeb7a6997cd298213c3e5c424 (patch)
tree3edbdf39bf85561e474781fe4eee143de76fdc1a /src/mongo/db/exec/subplan.cpp
parent6270f8eab062bb441ce3acc67280227f0d390f7e (diff)
downloadmongo-a9d10207448a5d1eeb7a6997cd298213c3e5c424.tar.gz
SERVER-59695 Make index filters work with SBE plan cache
Co-authored-by: Ruoxin Xu ruoxin.xu@mongodb.com
Diffstat (limited to 'src/mongo/db/exec/subplan.cpp')
-rw-r--r--src/mongo/db/exec/subplan.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/exec/subplan.cpp b/src/mongo/db/exec/subplan.cpp
index 0cf6e4e0eb4..c2f2947cecc 100644
--- a/src/mongo/db/exec/subplan.cpp
+++ b/src/mongo/db/exec/subplan.cpp
@@ -139,9 +139,7 @@ Status SubplanStage::choosePlanWholeQuery(PlanYieldPolicy* yieldPolicy) {
MultiPlanStage* multiPlanStage = static_cast<MultiPlanStage*>(child().get());
for (size_t ix = 0; ix < solutions.size(); ++ix) {
- if (solutions[ix]->cacheData.get()) {
- solutions[ix]->cacheData->indexFilterApplied = _plannerParams.indexFiltersApplied;
- }
+ solutions[ix]->indexFilterApplied = _plannerParams.indexFiltersApplied;
auto&& nextPlanRoot = stage_builder::buildClassicExecutableTree(
expCtx()->opCtx, collection(), *_query, *solutions[ix], _ws);