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

move side transaction boundaries in OpObserverImpl for preparing multi-document transaction

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution NAMR Team 2023-07-24, Execution NAMR Team 2023-08-07

      The side transaction currently defined in OpObserverImpl::onTransactionPrepare() makes it a challenge to extract some operations that are not directly related to writing the oplog entry. It may be worthwhile to look into defining the boundaries of the side transaction outside the OpObserverImpl method as an intermediate step to extracting some of these operations into a new OpObserver. For onTransactionPrepare, in production code, there is only one caller in TransactionParticipant, which makes this refactoring somewhat straightforward.

            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: