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

Remove inActiveOrKilledMultiDocumentTransaction() from TransactionParticipant

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      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

      Description

      inActiveOrKilledMultiDocumentTransaction() was added to detect if an operation was run as part of a multi-document transaction, allowing for the possibility that the transaction was aborted by a concurrent operation. After SERVER-38810, it is not possible for a concurrent operation to abort a transaction, since an operation must check out the session to modify transaction state. We could remove this function and replace all usages with inMultiDocumentTransaction().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pavithra.vetriselvan Pavithra Vetriselvan
              Reporter:
              tess.avitabile Tess Avitabile
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: