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

Unify checks for inMultiDocumentTransaction and friends

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12
    • Linked BF Score:
      12

      Description

      There are multiple ways of checking if an opCtx is in a multi-document transaction. They're each slightly different in practice and we use them somewhat interchangeably. We should clarify the semantic differences between these three, make sure that any place that uses one is using the correct one, and make it clearer what to do in the future.

      Ways to check:

      1. inMultiDocumentTransaction
      2. seeing if the opCtx has a top level WUOW
      3. checking if the read concern on the opCtx is "snapshot"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samy.lanka Samyukta Lanka
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: