diff options
author | Nicholas Zolnierz <nicholas.zolnierz@mongodb.com> | 2022-05-31 09:24:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-18 20:37:08 +0000 |
commit | 39a79c12b930b7adc5fe2872e482f9e483121dcf (patch) | |
tree | f5ca4862c6d23bbfd62cb119b780dffa31bb86a9 /src/mongo/db/query/sbe_stage_builder_index_scan.cpp | |
parent | 65002ae2d4bacf9413383faa4b38d3480a2a8328 (diff) | |
download | mongo-39a79c12b930b7adc5fe2872e482f9e483121dcf.tar.gz |
SERVER-63845 Separate variable reference tracking from pipeline field dependency analysis
Diffstat (limited to 'src/mongo/db/query/sbe_stage_builder_index_scan.cpp')
-rw-r--r-- | src/mongo/db/query/sbe_stage_builder_index_scan.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_index_scan.cpp b/src/mongo/db/query/sbe_stage_builder_index_scan.cpp index 55f9a0d7977..e44ec47fead 100644 --- a/src/mongo/db/query/sbe_stage_builder_index_scan.cpp +++ b/src/mongo/db/query/sbe_stage_builder_index_scan.cpp @@ -48,6 +48,7 @@ #include "mongo/db/exec/sbe/stages/unique.h" #include "mongo/db/exec/sbe/stages/unwind.h" #include "mongo/db/index/index_access_method.h" +#include "mongo/db/matcher/match_expression_dependencies.h" #include "mongo/db/query/index_bounds_builder.h" #include "mongo/db/query/query_knobs_gen.h" #include "mongo/db/query/sbe_stage_builder.h" @@ -1000,7 +1001,7 @@ std::pair<std::unique_ptr<sbe::PlanStage>, PlanStageSlots> generateIndexScan( auto [indexFilterKeyBitset, indexFilterKeyFields] = [&]() { if (ixn->filter) { DepsTracker tracker; - ixn->filter->addDependencies(&tracker); + match_expression::addDependencies(ixn->filter.get(), &tracker); return makeIndexKeyInclusionSet(ixn->index.keyPattern, tracker.fields); } return std::make_pair(sbe::IndexKeysInclusionSet{}, std::vector<std::string>{}); @@ -1247,7 +1248,7 @@ std::pair<std::unique_ptr<sbe::PlanStage>, PlanStageSlots> generateIndexScanWith auto [indexFilterKeyBitset, indexFilterKeyFields] = [&]() { if (ixn->filter) { DepsTracker tracker; - ixn->filter->addDependencies(&tracker); + match_expression::addDependencies(ixn->filter.get(), &tracker); return makeIndexKeyInclusionSet(ixn->index.keyPattern, tracker.fields); } return std::make_pair(sbe::IndexKeysInclusionSet{}, std::vector<std::string>{}); |