diff options
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp index 8730ae99e73..5697927b83c 100644 --- a/src/mongo/db/index_builds_coordinator.cpp +++ b/src/mongo/db/index_builds_coordinator.cpp @@ -1545,7 +1545,7 @@ void IndexBuildsCoordinator::_runIndexBuildInner(OperationContext* opCtx, // X lock while a prepared transaction held a Collection IX lock, and a step down was // waiting to acquire the RSTL in mode X. // TODO(SERVER-44045): Revisit this logic for the non-two phase index build case. - if (!supportsTwoPhaseIndexBuild()) { + if (IndexBuildProtocol::kTwoPhase != replState->protocol) { const bool unlocked = opCtx->lockState()->unlockRSTLforPrepare(); invariant(unlocked); } |