Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71069

add ReplOperation method for exporting pre/post image information for writing to the image collection

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-11-14

      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.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: