[SERVER-39614] Remove inActiveOrKilledMultiDocumentTransaction() from TransactionParticipant Created: 15/Feb/19  Updated: 29/Oct/23  Resolved: 03/Sep/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.1, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: prepare_optional
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-38810 Use the Client mutex or the SessionCa... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Repl 2019-06-17, Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
Participants:

 Description   

inActiveOrKilledMultiDocumentTransaction() was added to detect if an operation was run as part of a multi-document transaction, allowing for the possibility that the transaction was aborted by a concurrent operation. After SERVER-38810, it is not possible for a concurrent operation to abort a transaction, since an operation must check out the session to modify transaction state. We could remove this function and replace all usages with inMultiDocumentTransaction().



 Comments   
Comment by Githook User [ 24/Sep/19 ]

Author:

{'name': 'Pavithra Vetriselvan', 'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com'}

Message: SERVER-39614 replace inActiveOrKilledMultiDocumentTransaction with inMultiDocumentTransaction

(cherry picked from commit 53bdef48cc8a14c23afc2223c9a8826a0f587ac7)
Branch: v4.2
https://github.com/mongodb/mongo/commit/86792e81d6e1b348ec102bb22039d2a5e5f5d7e5

Comment by Githook User [ 03/Sep/19 ]

Author:

{'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'name': 'Pavithra Vetriselvan'}

Message: SERVER-39614 replace inActiveOrKilledMultiDocumentTransaction with inMultiDocumentTransaction
Branch: master
https://github.com/mongodb/mongo/commit/53bdef48cc8a14c23afc2223c9a8826a0f587ac7

Generated at Thu Feb 08 04:52:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.