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

XMLWordPrintableJSON

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

      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
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: