diff options
author | Benety Goh <benety@mongodb.com> | 2020-02-05 13:32:16 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-05 18:54:38 +0000 |
commit | b57cfb409cf083d0192d6600e296c26ee030d6d4 (patch) | |
tree | 458263396f5e1d827e0123b2eb824bfcc9515df6 | |
parent | fb91e1d6e719de42905d63d26f065a4ac835be1e (diff) | |
download | mongo-b57cfb409cf083d0192d6600e296c26ee030d6d4.tar.gz |
SERVER-45883 fix index build protocol check in createIndexes
-rw-r--r-- | src/mongo/db/commands/create_indexes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |