diff options
author | Pavi Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2021-03-17 17:39:20 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-18 00:30:39 +0000 |
commit | 2a19952b4522489d35e4931eb10c5e74a8bd2bc2 (patch) | |
tree | f6c9f979eb1d479cc3a05c0393ad3fd6a8e4986c | |
parent | 3afa5f4fde94a47d8d3ca3743954216c8342f32d (diff) | |
download | mongo-2a19952b4522489d35e4931eb10c5e74a8bd2bc2.tar.gz |
SERVER-55277 Prevent deadlock between _createOplogBuffer and stepDown
-rw-r--r-- | src/mongo/db/repl/tenant_migration_recipient_service.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.cpp b/src/mongo/db/repl/tenant_migration_recipient_service.cpp index d36970851b1..5f4e7cc0f7c 100644 --- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp +++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp @@ -1036,7 +1036,6 @@ void TenantMigrationRecipientService::Instance::_createOplogBuffer() { _donorOplogBuffer = std::move(bufferCollection); } - stdx::unique_lock lk(_mutex); invariant(_stateDoc.getStartFetchingDonorOpTime()); { // Ensure we are primary when trying to startup and create the oplog buffer collection. |