diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-07-25 00:02:55 -0400 |
---|---|---|
committer | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-07-25 00:02:55 -0400 |
commit | be06cfaae8872737fe349a8a400f322123307061 (patch) | |
tree | 2b73caf3d01c62a708ae06ad9a6b523fcfb7c2e9 /src/mongo/db/concurrency/d_concurrency_test.cpp | |
parent | 2ff54098b19ebc2b4bbf5516de6e6befb46f9fe7 (diff) | |
download | mongo-be06cfaae8872737fe349a8a400f322123307061.tar.gz |
SERVER-41980 Prepared transactions should not acquire ticket on primary.
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency_test.cpp')
-rw-r--r-- | src/mongo/db/concurrency/d_concurrency_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency_test.cpp b/src/mongo/db/concurrency/d_concurrency_test.cpp index cb310b55eb9..1a0b49a9e82 100644 --- a/src/mongo/db/concurrency/d_concurrency_test.cpp +++ b/src/mongo/db/concurrency/d_concurrency_test.cpp @@ -1476,7 +1476,7 @@ TEST_F(DConcurrencyTestFixture, NoThrottlingWhenNotAcquiringTickets) { UseGlobalThrottling throttle(opctx1, 1); // Prevent the enforcement of ticket throttling. - opctx1->lockState()->setShouldAcquireTicket(false); + opctx1->lockState()->skipAcquireTicket(); // Both locks should be acquired immediately because there is no throttling. Lock::GlobalRead R1(opctx1, Date_t::now(), Lock::InterruptBehavior::kThrow); |