summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.cpp
diff options
context:
space:
mode:
authorJustin Zhang <justin.zhang@mongodb.com>2022-08-19 15:35:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-19 17:01:58 +0000
commit7418e94a7dfadebf973315d5abfdf046c3679e02 (patch)
tree81cdd24531169e28d58b380d2babc00e7e87ed4a /src/mongo/db/index_builds_coordinator.cpp
parente52434d6d10de65da1350a4a21096d43f6d93669 (diff)
downloadmongo-7418e94a7dfadebf973315d5abfdf046c3679e02.tar.gz
SERVER-67138 Change column index key generation to only insert keys for fields included in the index
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index 205f9badbd5..a8494b8215e 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -3082,8 +3082,9 @@ std::vector<BSONObj> IndexBuildsCoordinator::normalizeIndexSpecs(
auto indexPathProjection = isWildcard
? static_cast<IndexPathProjection>(WildcardKeyGenerator::createProjectionExecutor(
kFieldSetKeyPattern, pathProjectionSpec))
- : static_cast<IndexPathProjection>(ColumnKeyGenerator::createProjectionExecutor(
- kFieldSetKeyPattern, pathProjectionSpec));
+ : static_cast<IndexPathProjection>(
+ column_keygen::ColumnKeyGenerator::createProjectionExecutor(kFieldSetKeyPattern,
+ pathProjectionSpec));
auto normalizedProjection =
indexPathProjection.exec()->serializeTransformation(boost::none).toBson();
return spec.addField(BSON(projectionName << normalizedProjection).firstElement());