diff options
author | Jordi Olivares Provencio <jordi.olivares-provencio@mongodb.com> | 2022-10-27 13:43:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-27 14:44:23 +0000 |
commit | e79fa3438f0fe33a4e688e29fad0a161a8681523 (patch) | |
tree | 4becfd63815c2d813225aa0c6c4a142e1789a4a7 /src/mongo/db/transaction | |
parent | 0a36c400692c54d148c9c38601dff1ce825edb1f (diff) | |
download | mongo-e79fa3438f0fe33a4e688e29fad0a161a8681523.tar.gz |
SERVER-69820 Simplify Flow control ticket acquisition
Diffstat (limited to 'src/mongo/db/transaction')
-rw-r--r-- | src/mongo/db/transaction/transaction_participant.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/transaction/transaction_participant.cpp b/src/mongo/db/transaction/transaction_participant.cpp index bcb9bc689e4..2f0c5534dda 100644 --- a/src/mongo/db/transaction/transaction_participant.cpp +++ b/src/mongo/db/transaction/transaction_participant.cpp @@ -170,10 +170,6 @@ auto performReadWithNoTimestampDBDirectClient(OperationContext* opCtx, Callable& ReadSourceScope readSourceScope(opCtx, RecoveryUnit::ReadSource::kNoTimestamp); DBDirectClient client(opCtx); - // If the 'opCtx' is marked as "in multi document transaction", the read done by 'callable' - // would acquire the global lock in the IX mode. That upconvert would require a flow control - // ticket to be obtained. - FlowControl::Bypass flowControlBypass(opCtx); return callable(&client); } @@ -201,11 +197,6 @@ struct ActiveTransactionHistory { ActiveTransactionHistory fetchActiveTransactionHistory(OperationContext* opCtx, const LogicalSessionId& lsid, bool fetchOplogEntries) { - // FlowControl is only impacted when a MODE_IX global lock is acquired. If we are in a - // multi-document transaction, we must acquire a MODE_IX global lock. Prevent obtaining a flow - // control ticket while in a mutli-document transaction. - FlowControl::Bypass flowControlBypass(opCtx); - // Storage engine operations require at a least global MODE_IS lock. In multi-document // transactions, storage opeartions require at least a global MODE_IX lock. Prevent lock // upgrading in the case of a multi-document transaction. |