diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2018-03-30 15:25:47 -0400 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2018-04-18 16:41:30 -0400 |
commit | d9a5a306690d7cdb8831e64441a66cdd503d8064 (patch) | |
tree | 9d28b12e88351a4efab5b9d883f9a79ac2b2044a /src/mongo/db/concurrency/lock_stats_test.cpp | |
parent | cf34f10d361240f4a94f5fae94cb55bc2c0acf9b (diff) | |
download | mongo-d9a5a306690d7cdb8831e64441a66cdd503d8064.tar.gz |
SERVER-27534 All writing operations must fail if the term changes.
This reapplies bc19d43f, which was reverted by ae50776b. It also adds
more test fixes.
Diffstat (limited to 'src/mongo/db/concurrency/lock_stats_test.cpp')
-rw-r--r-- | src/mongo/db/concurrency/lock_stats_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_stats_test.cpp b/src/mongo/db/concurrency/lock_stats_test.cpp index 1d064a23fcb..53237a5e0f0 100644 --- a/src/mongo/db/concurrency/lock_stats_test.cpp +++ b/src/mongo/db/concurrency/lock_stats_test.cpp @@ -63,7 +63,7 @@ TEST(LockStats, Wait) { { // This will block LockerForTests lockerConflict(MODE_IX); - ASSERT_EQUALS(LOCK_WAITING, lockerConflict.lockBegin(resId, MODE_S)); + ASSERT_EQUALS(LOCK_WAITING, lockerConflict.lockBegin(nullptr, resId, MODE_S)); // Sleep 1 millisecond so the wait time passes ASSERT_EQUALS( |