Enforce RSLocalClient::queryOnce does not hold resources with majority read concern

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-08-08, Execution Team 2022-10-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      RSLocalClient::queryOnce should enforce that no resources are being held if it is called with kMajorityReadConcern.

      invariant(!opCtx->lockState()->isLocked());
      invariant(!opCtx->lockState()->inAWriteUnitOfWork());
      

            Assignee:
            Gregory Noma
            Reporter:
            Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: