summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/repl/master_slave.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp
index a24fb3e138f..5e69e6d4a64 100644
--- a/src/mongo/db/repl/master_slave.cpp
+++ b/src/mongo/db/repl/master_slave.cpp
@@ -514,7 +514,7 @@ bool ReplSource::handleDuplicateDbName(OperationContext* txn,
{
// This is always a GlobalWrite lock (so no ns/db used from the context)
invariant(txn->lockState()->isW());
- Lock::TempRelease(txn->lockState());
+ Lock::TempRelease tempRelease(txn->lockState());
// We always log an operation after executing it (never before), so
// a database list will always be valid as of an oplog entry generated