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 11:44:59 -0400 |
commit | f8f872e029ba3b1f32d8499c912756d48dc1a03b (patch) | |
tree | 8e024a7746bfbf12f296b0bcb45ab73a17779922 /src/mongo/db | |
parent | 612457dcfc3ba939dc8474f227f9166520a4a583 (diff) | |
download | mongo-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')
-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) { |