Unify checks for inMultiDocumentTransaction and friends

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.2
    • Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12
    • 12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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"

              Assignee:
              Samyukta Lanka
              Reporter:
              Judah Schvimer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: