diff options
author | Allison Easton <allison.easton@mongodb.com> | 2019-05-30 10:59:33 -0400 |
---|---|---|
committer | Allison Easton <allison.easton@mongodb.com> | 2019-06-03 17:00:21 -0400 |
commit | 88f2b4c6cbe7c06e20f1638c4aeced5d9dfeeea7 (patch) | |
tree | 66cebeefad0a8378989d2aaf620460cdc030f758 /src/mongo/db | |
parent | e9c2d512f2fabea02734b0650b6540881f97cef9 (diff) | |
download | mongo-88f2b4c6cbe7c06e20f1638c4aeced5d9dfeeea7.tar.gz |
SERVER-39116 Name unnamed GlobalLock in TransactionParticipant
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/transaction_participant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_participant.cpp b/src/mongo/db/transaction_participant.cpp index 1b2219c2d19..54a0d8ff725 100644 --- a/src/mongo/db/transaction_participant.cpp +++ b/src/mongo/db/transaction_participant.cpp @@ -921,7 +921,7 @@ void TransactionParticipant::Participant::unstashTransactionResources(OperationC // Global intent lock before starting a transaction. We pessimistically acquire an intent // exclusive lock here because we might be doing writes in this transaction, and it is currently // not deadlock-safe to upgrade IS to IX. - Lock::GlobalLock(opCtx, MODE_IX); + Lock::GlobalLock globalLock(opCtx, MODE_IX); // This begins the storage transaction and so we do it after acquiring the global lock. _setReadSnapshot(opCtx, repl::ReadConcernArgs::get(opCtx)); |