diff options
author | Jason Chan <jason.chan@mongodb.com> | 2021-02-12 20:07:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-12 22:18:39 +0000 |
commit | b8cd0ef00f5ef5cf978317cf4cee16ac100c860b (patch) | |
tree | e00286e69c89ab9113cbb250b6b9b4798a088a2a | |
parent | 234b3c55f416220d150c710e6caeb68391070cb5 (diff) | |
download | mongo-b8cd0ef00f5ef5cf978317cf4cee16ac100c860b.tar.gz |
SERVER-54517 Remove redundant 'shouldFail()' around pauseWhileSet() for hangAfterInitializingIndexBuild failpoint
-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()); |