summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_wildcard_helpers.cpp
diff options
context:
space:
mode:
authorJustin Zhang <justin.zhang@mongodb.com>2022-08-19 19:33:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-19 20:53:08 +0000
commit0ae6bba3c1483a309640e60ba5fb80f45b16ea67 (patch)
treef81d9f62f11a86a7154dc6c740bf01b7e8959e39 /src/mongo/db/query/planner_wildcard_helpers.cpp
parentbcebd12f2e6492eef7f609d8b234f81e92c2f683 (diff)
downloadmongo-0ae6bba3c1483a309640e60ba5fb80f45b16ea67.tar.gz
SERVER-67140 Change query planner to determine column index eligibility based on field projection
Diffstat (limited to 'src/mongo/db/query/planner_wildcard_helpers.cpp')
-rw-r--r--src/mongo/db/query/planner_wildcard_helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/planner_wildcard_helpers.cpp b/src/mongo/db/query/planner_wildcard_helpers.cpp
index ab2731461e8..bdc229352ee 100644
--- a/src/mongo/db/query/planner_wildcard_helpers.cpp
+++ b/src/mongo/db/query/planner_wildcard_helpers.cpp
@@ -361,7 +361,7 @@ void expandWildcardIndexEntry(const IndexEntry& wildcardIndex,
invariant(wildcardIndex.multikeyPaths.empty());
// Obtain the projection executor from the parent wildcard IndexEntry.
- auto* wildcardProjection = wildcardIndex.wildcardProjection;
+ auto* wildcardProjection = wildcardIndex.indexPathProjection;
invariant(wildcardProjection);
const auto projectedFields =
@@ -411,7 +411,7 @@ void expandWildcardIndexEntry(const IndexEntry& wildcardIndex,
wildcardIndex.filterExpr,
wildcardIndex.infoObj,
wildcardIndex.collator,
- wildcardIndex.wildcardProjection);
+ wildcardIndex.indexPathProjection);
invariant("$_path"_sd != fieldName);
out->push_back(std::move(entry));