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

Unify checks for inMultiDocumentTransaction and friends

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.1, 4.3.1
    • Replication
    • None
    • Fully Compatible
    • v4.2
    • Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12
    • 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

              samy.lanka@mongodb.com Samyukta Lanka
              judah.schvimer@mongodb.com Judah Schvimer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: