summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp')
-rw-r--r--src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp b/src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp
index c2ef5529e79..29d4ccc22ec 100644
--- a/src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp
+++ b/src/mongo/db/query/optimizer/cascades/logical_props_derivation.cpp
@@ -222,8 +222,7 @@ public:
indexingAvailability.setEqPredsOnly(computeEqPredsOnly(node.getReqMap()));
}
- auto& satisfiedPartialIndexes =
- getProperty<IndexingAvailability>(result).getSatisfiedPartialIndexes();
+ auto& satisfiedPartialIndexes = indexingAvailability.getSatisfiedPartialIndexes();
for (const auto& [indexDefName, indexDef] : scanDef.getIndexDefs()) {
if (!indexDef.getPartialReqMap().empty()) {
auto intersection = node.getReqMap();
@@ -237,6 +236,8 @@ public:
}
}
+ indexingAvailability.setHasProperInterval(hasProperIntervals(node.getReqMap()));
+
return maybeUpdateNodePropsMap(node, std::move(result));
}