diff options
author | Justin Zhang <justin.zhang@mongodb.com> | 2022-08-19 15:35:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-19 17:01:58 +0000 |
commit | 7418e94a7dfadebf973315d5abfdf046c3679e02 (patch) | |
tree | 81cdd24531169e28d58b380d2babc00e7e87ed4a /src/mongo/db/index_builds_coordinator.cpp | |
parent | e52434d6d10de65da1350a4a21096d43f6d93669 (diff) | |
download | mongo-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.cpp | 5 |
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()); |