Avoid data race in AdmissionContext

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2023-03-06
    • 170
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      AdmissionContext::Priority gets read by curOp. This can race against a simultaneous write by the operation that sets the priority. This is fine as at most curOp would report an old priority.

      We should wrap the admission priority in an AtomicWord so that we explicitly tell TSAN that this is fine.

            Assignee:
            Jordi Olivares Provencio
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: