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 15:23:52 -0400
commit4cd74465dc857148e897654d31195226ef665e70 (patch)
tree372ffcc49e1deaf0981491ed19371e167af5b017 /src/mongo/db/repl/repl_set_commands.cpp
parent20db20fd8206413361dde31eec67139467429bea (diff)
downloadmongo-4cd74465dc857148e897654d31195226ef665e70.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) {