diff options
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.cpp')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp index 3ce99611f15..0b56b93348b 100644 --- a/src/mongo/db/index_builds_coordinator.cpp +++ b/src/mongo/db/index_builds_coordinator.cpp @@ -2396,7 +2396,9 @@ void IndexBuildsCoordinator::_runIndexBuildInner( fassertFailedNoTrace(5642402); } // TODO (SERVER-69264): Remove ErrorCodes::CannotCreateIndex. - invariant(opCtx->isKillPending() || status.code() == ErrorCodes::CannotCreateIndex, + // TODO (SERVER-69496): Remove ErrorCodes::InterruptedAtShutdown. + invariant(opCtx->isKillPending() || status.code() == ErrorCodes::CannotCreateIndex || + status.code() == ErrorCodes::InterruptedAtShutdown, str::stream() << "Unexpected error code during index build cleanup: " << status); if (IndexBuildProtocol::kSinglePhase == replState->protocol) { _cleanUpSinglePhaseAfterFailure(opCtx, collection, replState, indexBuildOptions, status); |