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

Prevent readers from reading garbage/stale value from global_lock_acquisition_tracker.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-04-08

      Currently, when we modify GlobalLockAcquisitionTracker:_globalLockMode, there is a possibility that the step down thread is reading its value concurrently. In order to avoid the step down thread from reading a garbage/stale value, make GlobalLockAcquisitionTracker:_globalLockMode as an AtomicWord<unsigned char>.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: