summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_wildcard_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/planner_wildcard_helpers.cpp')
-rw-r--r--src/mongo/db/query/planner_wildcard_helpers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/planner_wildcard_helpers.cpp b/src/mongo/db/query/planner_wildcard_helpers.cpp
index 837180ff85b..395d0253e04 100644
--- a/src/mongo/db/query/planner_wildcard_helpers.cpp
+++ b/src/mongo/db/query/planner_wildcard_helpers.cpp
@@ -397,6 +397,7 @@ void expandWildcardIndexEntry(const IndexEntry& wildcardIndex,
IndexEntry entry(BSON(fieldName << wildcardIndex.keyPattern.firstElement()),
IndexType::INDEX_WILDCARD,
+ IndexDescriptor::kLatestIndexVersion,
isMultikey,
std::move(multikeyPaths),
// Expanded index entries always use the fixed-size multikey paths