acquireCollectionsOrViews should leave snapshot open if in WUOW

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution EMEA Team 2023-07-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In other acquire functions we check

      openSnapshot && !opCtx->lockState()->inAWriteUnitOfWork()

      before abandoning the snapshot. But in acquireCollectionsOrViews we only check openSnapshot. This led to hitting an invariant while working in SERVER-69461.

              Assignee:
              Yujin Kang Park
              Reporter:
              Yujin Kang Park
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: