[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: |
|
||||||||||||
| 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: |