Skip to content

Commit 303fadf

Browse files
committed
SERVER-42015 IndexBuildsCoordinator releases collection lock after index build second drain
1 parent 8bb53a0 commit 303fadf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongo/db/index_builds_coordinator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ void IndexBuildsCoordinator::_buildIndex(OperationContext* opCtx,
903903
collLock->emplace(opCtx, nss, MODE_S);
904904
uassertStatusOK(_indexBuildsManager.drainBackgroundWrites(
905905
opCtx, replState->buildUUID, RecoveryUnit::ReadSource::kUnset));
906+
collLock->reset();
906907

907908
if (MONGO_FAIL_POINT(hangAfterIndexBuildSecondDrain)) {
908909
log() << "Hanging after index build second drain";

0 commit comments

Comments
 (0)