[SERVER-39440] Write oplog entries with "inTxn" field before prepare Created: 08/Feb/19  Updated: 29/Oct/23  Resolved: 27/Feb/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-32330 When a transaction gets committed or ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-03-11
Participants:

 Description   

Oplog entries for individual operations are handled in a similar way as unprepared transactions except they are buffered until and written at the “prepare” time instead of the “commit” time. On “prepare” command, an oplog entry is written for each operation in the transaction with the new root field { “inTxn” : true } to denote it is a no-op.



 Comments   
Comment by Githook User [ 27/Feb/19 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@10gen.com'}

Message: SERVER-39440 Write oplog entries with "inTxn" field before prepare
Branch: master
https://github.com/mongodb/mongo/commit/213ce0795a497fcb74849163dc893b7091db840a

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