summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-04-06 15:14:55 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-04-06 15:14:55 -0400
commita273f6f84cb29e31221f580b00905613d3f31330 (patch)
treec7a27153f34b965eb66b5a542ccc53ea39c1c93c /src/mongo/db/repl/rs_rollback.cpp
parent1c0c35ba16ab6f03902db70f9e5750a74877e8a4 (diff)
downloadmongo-a273f6f84cb29e31221f580b00905613d3f31330.tar.gz
SERVER-34142: Convert background index builds to foreground during oplog recovery.
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.cpp')
-rw-r--r--src/mongo/db/repl/rs_rollback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp
index 46597cf6671..e9ce7c1d684 100644
--- a/src/mongo/db/repl/rs_rollback.cpp
+++ b/src/mongo/db/repl/rs_rollback.cpp
@@ -728,7 +728,7 @@ void rollbackDropIndexes(OperationContext* opCtx,
log() << "Creating index in rollback for collection: " << nss << ", UUID: " << uuid
<< ", index: " << indexName;
- createIndexForApplyOps(opCtx, indexSpec, nss, {});
+ createIndexForApplyOps(opCtx, indexSpec, nss, {}, OplogApplication::Mode::kRecovering);
LOG(1) << "Created index in rollback for collection: " << nss << ", UUID: " << uuid
<< ", index: " << indexName;