summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2019-11-14 00:39:57 +0000
committerevergreen <evergreen@mongodb.com>2019-11-14 00:39:57 +0000
commit103318868c860e441050652b6dae137d0d21d593 (patch)
tree7f745ad6296c6ff8ce8c1901930eec81368ca297 /src/mongo/db/repair_database.cpp
parent1a3566fc89ed8637cfabb3b5436cde58731df759 (diff)
downloadmongo-103318868c860e441050652b6dae137d0d21d593.tar.gz
SERVER-39451 Support recover-to-stable rollback for two-phase index builds
Diffstat (limited to 'src/mongo/db/repair_database.cpp')
-rw-r--r--src/mongo/db/repair_database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repair_database.cpp b/src/mongo/db/repair_database.cpp
index 19e5a8fe114..ced21031a10 100644
--- a/src/mongo/db/repair_database.cpp
+++ b/src/mongo/db/repair_database.cpp
@@ -117,8 +117,8 @@ Status rebuildIndexesOnCollection(OperationContext* opCtx,
// Rebuild the indexes provided by 'indexSpecs'.
IndexBuildsCoordinator* indexBuildsCoord = IndexBuildsCoordinator::get(opCtx);
UUID buildUUID = UUID::gen();
- auto swRebuild = indexBuildsCoord->startIndexRebuildForRecovery(
- opCtx, collection->ns(), indexSpecs, buildUUID);
+ auto swRebuild =
+ indexBuildsCoord->rebuildIndexesForRecovery(opCtx, collection->ns(), indexSpecs, buildUUID);
if (!swRebuild.isOK()) {
return swRebuild.getStatus();
}