diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-07 12:59:32 -0500 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-02-13 09:13:55 -0500 |
commit | 5c0be87432ba798f50cf6f14a65d24b6b3084838 (patch) | |
tree | 1473478e640e850a43c092d1327aef61abb0020f /src/mongo/db/repair_database_and_check_version.cpp | |
parent | 87194fbe0c24525bc1f2d674012fe6978eca77d2 (diff) | |
download | mongo-5c0be87432ba798f50cf6f14a65d24b6b3084838.tar.gz |
SERVER-39086 Refactor startup index builds to use the IndexBuildsCoordinator
Diffstat (limited to 'src/mongo/db/repair_database_and_check_version.cpp')
-rw-r--r-- | src/mongo/db/repair_database_and_check_version.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repair_database_and_check_version.cpp b/src/mongo/db/repair_database_and_check_version.cpp index d2a1be11e38..31717c26aaa 100644 --- a/src/mongo/db/repair_database_and_check_version.cpp +++ b/src/mongo/db/repair_database_and_check_version.cpp @@ -230,9 +230,10 @@ void rebuildIndexes(OperationContext* opCtx, StorageEngine* storageEngine) { for (const auto& indexName : entry.second.first) { log() << "Rebuilding index. Collection: " << collNss << " Index: " << indexName; } + + std::vector<BSONObj> indexSpecs = entry.second.second; fassert(40592, - rebuildIndexesOnCollection( - opCtx, dbCatalogEntry, collCatalogEntry, std::move(entry.second))); + rebuildIndexesOnCollection(opCtx, dbCatalogEntry, collCatalogEntry, indexSpecs)); } } |