[SERVER-39613] Remove kCommittingWithPrepare and kCommittingWithoutPrepare from TransactionState Created: 15/Feb/19  Updated: 29/Oct/23  Resolved: 27/Aug/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: Siyuan Zhou
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   

The kCommittingWithPrepare and kCommittingWithoutPrepare transaction states were originally added because needed to release the TransactionParticipant mutex before calling into the OpObserver, and a concurrent operation could modify the TransactionParticipant state while the mutex was not held. After SERVER-38810, however, the session must be checked out in order to modify TransactionParticipant state, so the kCommittingWithPrepare and kCommittingWithoutPrepare transaction states are likely unnecessary.



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

Author:

{'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}

Message: SERVER-39613 Remove kCommittingWithPrepare and kCommittingWithoutPrepare from TransactionState

(cherry picked from commit dd2de577670e9461c31ca9e6fe5c9713b4401181)
Branch: v4.2
https://github.com/mongodb/mongo/commit/df442da1c38bfb1bdb1e6358bbe5ab263b0f78c1

Comment by Githook User [ 26/Aug/19 ]

Author:

{'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou'}

Message: SERVER-39613 Remove kCommittingWithPrepare and kCommittingWithoutPrepare from TransactionState
Branch: master
https://github.com/mongodb/mongo/commit/dd2de577670e9461c31ca9e6fe5c9713b4401181

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