summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_recipient_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_recipient_service.cpp')
-rw-r--r--src/mongo/db/repl/tenant_migration_recipient_service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.cpp b/src/mongo/db/repl/tenant_migration_recipient_service.cpp
index 9c9038c3846..5901de19cd9 100644
--- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp
+++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp
@@ -913,8 +913,8 @@ SemiFuture<void> TenantMigrationRecipientService::Instance::_initializeStateDoc(
.then([this, self = shared_from_this(), stateDoc = _stateDoc] {
auto opCtx = cc().makeOperationContext();
{
- Lock::ExclusiveLock stateDocInsertLock(
- opCtx.get(), opCtx->lockState(), _recipientService->_stateDocInsertMutex);
+ Lock::ExclusiveLock stateDocInsertLock(opCtx.get(),
+ _recipientService->_stateDocInsertMutex);
uassertStatusOK(
tenantMigrationRecipientEntryHelpers::insertStateDoc(opCtx.get(), stateDoc));
}