diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-03-29 17:48:58 -0400 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-04-08 15:23:52 -0400 |
commit | 4cd74465dc857148e897654d31195226ef665e70 (patch) | |
tree | 372ffcc49e1deaf0981491ed19371e167af5b017 /src | |
parent | 20db20fd8206413361dde31eec67139467429bea (diff) | |
download | mongo-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')
-rw-r--r-- | src/mongo/db/repl/repl_set_commands.cpp | 2 |
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) { |