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

Unify checks for inMultiDocumentTransaction and friends

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: