diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-07-12 16:11:52 -0400 |
---|---|---|
committer | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-07-21 22:40:51 -0400 |
commit | a5d4ab967af9cbba17e6aa5afadca35927bd74c1 (patch) | |
tree | eab6ec805312a30b0a7e0d0392f40a8d0c421b1a /src/mongo/db/ftdc | |
parent | 0fddb3efeb0677b6be81fa3615a55d1f2888ed38 (diff) | |
download | mongo-a5d4ab967af9cbba17e6aa5afadca35927bd74c1.tar.gz |
SERVER-41980 Prepared transactions should not acquire ticket on primary.
Diffstat (limited to 'src/mongo/db/ftdc')
-rw-r--r-- | src/mongo/db/ftdc/collector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ftdc/collector.cpp b/src/mongo/db/ftdc/collector.cpp index 2462ee34690..37dd68b136e 100644 --- a/src/mongo/db/ftdc/collector.cpp +++ b/src/mongo/db/ftdc/collector.cpp @@ -68,7 +68,7 @@ std::tuple<BSONObj, Date_t> FTDCCollectorCollection::collect(Client* client) { // batches that are taking a long time. auto opCtx = client->makeOperationContext(); ShouldNotConflictWithSecondaryBatchApplicationBlock shouldNotConflictBlock(opCtx->lockState()); - opCtx->lockState()->setShouldAcquireTicket(false); + opCtx->lockState()->skipAcquireTicket(); // Explicitly start future read transactions without a timestamp. opCtx->recoveryUnit()->setTimestampReadSource(RecoveryUnit::ReadSource::kNoTimestamp); |