diff options
author | Benety Goh <benety@mongodb.com> | 2020-06-04 15:41:34 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-04 20:00:25 +0000 |
commit | 1722c72dde1ae8fa6559af6bc431d075324bd91b (patch) | |
tree | 8ef20818e6cbdfc60edb8bc05297add6450b16ab /src/mongo/db/system_index.cpp | |
parent | 5f1a69aaf69bc12124f68e7b489a1437f9cdd575 (diff) | |
download | mongo-1722c72dde1ae8fa6559af6bc431d075324bd91b.tar.gz |
SERVER-47182 IndexBuildsCoordinator::createIndexes() accepts single index spec
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r-- | src/mongo/db/system_index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp index 1df26d10abe..0b3c022dba4 100644 --- a/src/mongo/db/system_index.cpp +++ b/src/mongo/db/system_index.cpp @@ -116,8 +116,8 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx, auto indexConstraints = IndexBuildsManager::IndexConstraints::kEnforce; auto fromMigrate = false; - IndexBuildsCoordinator::get(opCtx)->createIndexes( - opCtx, collectionUUID, {indexSpec}, indexConstraints, fromMigrate); + IndexBuildsCoordinator::get(opCtx)->createIndex( + opCtx, collectionUUID, indexSpec, indexConstraints, fromMigrate); } catch (const DBException& e) { LOGV2_FATAL_CONTINUE(22490, "Failed to regenerate index for {namespace}. Exception: {error}", |