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.h | |
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.h')
-rw-r--r-- | src/mongo/db/repair_database.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/repair_database.h b/src/mongo/db/repair_database.h index c3c5d0ef423..84b63393f5d 100644 --- a/src/mongo/db/repair_database.h +++ b/src/mongo/db/repair_database.h @@ -59,16 +59,13 @@ StatusWith<IndexNameObjs> getIndexNameObjs(OperationContext* opCtx, [](const std::string& indexName) { return true; }); /** - * Selectively rebuild some indexes on a collection. Indexes will be built in parallel with a - * `MultiIndexBlock`. One example usage is when a `dropIndex` command is rolled back. The dropped - * index must be remade. - * - * @param indexNameObjs is expected to be the result of a call to `getIndexNameObjs`. + * Rebuilds the indexes provided by the 'indexSpecs' on the given collection. + * One example usage is when a 'dropIndex' command is rolled back. The dropped index must be remade. */ Status rebuildIndexesOnCollection(OperationContext* opCtx, DatabaseCatalogEntry* dbce, CollectionCatalogEntry* cce, - const IndexNameObjs& indexNameObjs); + const std::vector<BSONObj>& indexSpecs); /** * Repairs a database using a storage engine-specific, best-effort process. |