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

Avoid locking the ReplicaSetMonitorManager's mutex when garbage collection ReplicaSetMonitors

    • Fully Compatible
    • ALL
    • v5.0, v4.9
    • 106

      The ReplicaSetMonitorManager's mutex has a hierarchical locking level of 6. This means that it must be acquired before any lower-numbered mutex (on the same thread). This mutex is locked every time that a ReplicaSetMonitor is destructed. Enough uses of mutexes at levels 6 and below exist that it should be re-evaluated whether it's safe to lock a level 6 mutex in such a common code path.

            Assignee:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: