From f9f44a12b3c712d60881b430510bd5b7d603ca1b Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Tue, 2 Jun 2020 15:19:50 -0400 Subject: SERVER-48333 Whitelist index build oplog entries for the admin.system.version collection during initial sync (cherry picked from commit 74131b4e707c902b4ab3ea1428652850c906604e) --- src/mongo/db/repl/oplog.cpp | 10 ++++++++-- 1 file 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 whitelistedOps{ - "dropDatabase", "applyOps", "dbCheck", "commitTransaction", "abortTransaction"}; + std::vector whitelistedOps{"dropDatabase", + "applyOps", + "dbCheck", + "commitTransaction", + "abortTransaction", + "startIndexBuild", + "commitIndexBuild", + "abortIndexBuild"}; if ((mode == OplogApplication::Mode::kInitialSync) && (std::find(whitelistedOps.begin(), whitelistedOps.end(), o.firstElementFieldName()) == whitelistedOps.end()) && -- cgit v1.2.1