Simplify prepared transaction input to logApplyOps

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Storage Execution 2026-05-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In op_observer_impl.cpp, logApplyOps is called from 4 different contexts onUnpreparedTransactionCommit, onBatchedWriteCommit, onTransactionPrepare and onTransactionPrepare with different combinations of parameters.

      In SERVER-124140, we added another parameter computed only when it is the last op in a prepared transaction chain.

      We should separate the core logic of logApplyOps to reduce the parameter complexity and improve readability.

            Assignee:
            Haley Connelly
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: