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

Remove kCommittingWithPrepare and kCommittingWithoutPrepare from TransactionState

    • Fully Compatible
    • v4.2
    • Repl 2019-06-17, Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09

      The kCommittingWithPrepare and kCommittingWithoutPrepare transaction states were originally added because needed to release the TransactionParticipant mutex before calling into the OpObserver, and a concurrent operation could modify the TransactionParticipant state while the mutex was not held. After SERVER-38810, however, the session must be checked out in order to modify TransactionParticipant state, so the kCommittingWithPrepare and kCommittingWithoutPrepare transaction states are likely unnecessary.

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: