summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2019-05-30 10:59:33 -0400
committerAllison Easton <allison.easton@mongodb.com>2019-06-03 17:00:21 -0400
commit88f2b4c6cbe7c06e20f1638c4aeced5d9dfeeea7 (patch)
tree66cebeefad0a8378989d2aaf620460cdc030f758 /src/mongo/db
parente9c2d512f2fabea02734b0650b6540881f97cef9 (diff)
downloadmongo-88f2b4c6cbe7c06e20f1638c4aeced5d9dfeeea7.tar.gz
SERVER-39116 Name unnamed GlobalLock in TransactionParticipant
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/transaction_participant.cpp2
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));