[SERVER-71069] add ReplOperation method for exporting pre/post image information for writing to the image collection Created: 03/Nov/22  Updated: 29/Oct/23  Resolved: 04/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-60540 [Retryability] Add retryability suppo... Closed
is related to SERVER-70899 move logOplogEntries() from OpObserve... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-11-14
Participants:

 Description   

When formatting applyOps oplog entries for a multi-document transaction, the OpObserver implementation has to take into account how to update the config.images collection with pre/post images related to findAndModify operattions. In the packTransactionStatementsForApplyOps() function, we have a local function setImageToWrite that could be extracted into a method of the ReplOperation class.

Another improvement we could make is to promote the internal struct ImageBundle to a member struct of ReplOperation.



 Comments   
Comment by Githook User [ 04/Nov/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-71069 add ReplOperation::extractPrePostImageForTransaction()
Branch: master
https://github.com/mongodb/mongo/commit/5fcca3a0530e6a42f1e0990081333f908f1c3504

Generated at Thu Feb 08 06:17:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.