diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp index 3b4e4d6cf2e..63632382041 100644 --- a/src/mongo/db/index_builds_coordinator.cpp +++ b/src/mongo/db/index_builds_coordinator.cpp @@ -2084,9 +2084,8 @@ void IndexBuildsCoordinator::_runIndexBuildInner( // This Status stays unchanged unless we catch an exception in the following try-catch block. auto status = Status::OK(); try { - while (MONGO_unlikely(hangAfterInitializingIndexBuild.shouldFail())) { - hangAfterInitializingIndexBuild.pauseWhileSet(opCtx); - } + + hangAfterInitializingIndexBuild.pauseWhileSet(opCtx); if (resumeInfo) { _resumeIndexBuildFromPhase(opCtx, replState, indexBuildOptions, resumeInfo.get()); |