diff options
author | Louis Williams <louis.williams@mongodb.com> | 2019-02-05 13:05:27 -0500 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2019-02-12 13:15:24 +1100 |
commit | 7defb111584754daefece019f9045e1f0e1811ef (patch) | |
tree | 31c63fcffcdd8a6eaf4e5c614eeef54d381224a2 /src/mongo/db/repair_database.cpp | |
parent | e4f593b3dee7808d27c9db54c517ab198f5d9f89 (diff) | |
download | mongo-7defb111584754daefece019f9045e1f0e1811ef.tar.gz |
SERVER-39068 Replicate startIndexBuild and commitIndexBuild oplog entrires
Diffstat (limited to 'src/mongo/db/repair_database.cpp')
-rw-r--r-- | src/mongo/db/repair_database.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repair_database.cpp b/src/mongo/db/repair_database.cpp index b45e3ad1298..22215db1fa4 100644 --- a/src/mongo/db/repair_database.cpp +++ b/src/mongo/db/repair_database.cpp @@ -151,7 +151,7 @@ Status rebuildIndexesOnCollection(OperationContext* opCtx, collection = databaseHolder->makeCollection(opCtx, ns, uuid, cce, rs, dbce); indexer = std::make_unique<MultiIndexBlock>(opCtx, collection.get()); - Status status = indexer->init(indexSpecs).getStatus(); + Status status = indexer->init(indexSpecs, MultiIndexBlock::kNoopOnInitFn).getStatus(); if (!status.isOK()) { // The WUOW will handle cleanup, so the indexer shouldn't do its own. indexer->abortWithoutCleanup(); @@ -220,7 +220,8 @@ Status rebuildIndexesOnCollection(OperationContext* opCtx, { WriteUnitOfWork wunit(opCtx); - status = indexer->commit(); + status = + indexer->commit(MultiIndexBlock::kNoopOnCreateEachFn, MultiIndexBlock::kNoopOnCommitFn); if (!status.isOK()) { return status; } |