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

Use atomics for synchronizing `ClusterAuthMode`

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-03-04

      We currently use synchronized_value (which is backed by std::mutex) to synchronize readers/writers, but readers are only reading a small integer (< 64-bit) and only synchronize to read the value (their value can become stale). That being said, the mutex can be replaced with an AtomicWord.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: