summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_set_commands.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-03-29 17:48:58 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-04-08 11:44:59 -0400
commitf8f872e029ba3b1f32d8499c912756d48dc1a03b (patch)
tree8e024a7746bfbf12f296b0bcb45ab73a17779922 /src/mongo/db/repl/repl_set_commands.cpp
parent612457dcfc3ba939dc8474f227f9166520a4a583 (diff)
downloadmongo-f8f872e029ba3b1f32d8499c912756d48dc1a03b.tar.gz
SERVER-36494 Test that active txn entries aren't truncated
Add tests for initial sync, recovery, and the inMemory storage engine. Also, avoid taking a global X lock in replSetReconfig, we only need IX.
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index 6a417ff9a7a..058824de638 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -383,7 +383,7 @@ public:
status =
ReplicationCoordinator::get(opCtx)->processReplSetReconfig(opCtx, parsedArgs, &result);
- Lock::GlobalWrite globalWrite(opCtx);
+ Lock::GlobalLock globalLock(opCtx, MODE_IX);
WriteUnitOfWork wuow(opCtx);
if (status.isOK() && !parsedArgs.force) {