summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index c750d4595d9..2953d9c4483 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -1443,8 +1443,14 @@ Status applyCommand_inlock(OperationContext* opCtx,
// for each collection dropped. 'applyOps' and 'commitTransaction' will try to apply each
// individual operation, and those will be caught then if they are a problem. 'abortTransaction'
// won't ever change the server configuration collection.
- std::vector<std::string> whitelistedOps{
- "dropDatabase", "applyOps", "dbCheck", "commitTransaction", "abortTransaction"};
+ std::vector<std::string> whitelistedOps{"dropDatabase",
+ "applyOps",
+ "dbCheck",
+ "commitTransaction",
+ "abortTransaction",
+ "startIndexBuild",
+ "commitIndexBuild",
+ "abortIndexBuild"};
if ((mode == OplogApplication::Mode::kInitialSync) &&
(std::find(whitelistedOps.begin(), whitelistedOps.end(), o.firstElementFieldName()) ==
whitelistedOps.end()) &&