From b57cfb409cf083d0192d6600e296c26ee030d6d4 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Wed, 5 Feb 2020 13:32:16 -0500 Subject: SERVER-45883 fix index build protocol check in createIndexes --- src/mongo/db/commands/create_indexes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp index adb56fa19e2..ba8eb767daa 100644 --- a/src/mongo/db/commands/create_indexes.cpp +++ b/src/mongo/db/commands/create_indexes.cpp @@ -631,7 +631,7 @@ bool runCreateIndexesWithCoordinator(OperationContext* opCtx, // The index build will continue to run in the background and will complete when this // node receives a commitIndexBuild oplog entry from the new primary. - if (indexBuildsCoord->supportsTwoPhaseIndexBuild()) { + if (IndexBuildProtocol::kTwoPhase == protocol) { log() << "Index build continuing in background: " << buildUUID; throw; } -- cgit v1.2.1