diff options
author | Antonio Fuschetto <antonio.fuschetto@mongodb.com> | 2023-01-30 09:53:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-30 11:11:09 +0000 |
commit | 2772d1b849fc297e82aa166f45d03d93b77906ee (patch) | |
tree | 5ac5f66f0dac4c2e63f5f134a5949b8010d1a477 /src/mongo | |
parent | b1195b271c5944cd9b68763b91697828f5cda58b (diff) | |
download | mongo-2772d1b849fc297e82aa166f45d03d93b77906ee.tar.gz |
SERVER-70832 Don't take DB lock in MODE_X when installing new sharding database metadata
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/s/shard_filtering_metadata_refresh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp index 46933ebbde4..5993369024d 100644 --- a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp +++ b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp @@ -152,7 +152,7 @@ Status refreshDbMetadata(OperationContext* opCtx, } } - Lock::DBLock dbLock(opCtx, dbName, MODE_X); + Lock::DBLock dbLock(opCtx, dbName, MODE_IX); auto scopedDss = DatabaseShardingState::assertDbLockedAndAcquire( opCtx, dbName, DSSAcquisitionMode::kExclusive); if (!cancellationToken.isCanceled()) { |