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

Use WithLock parameter in Replica Set Monitor code instead of InLock()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • Workload Scheduling
    • Fully Compatible
    • Workload Scheduling 2024-10-28

      Using WithLock is safer because it forces us to actually have a lock rather than simply expect the engineers will do the right thing and acquire the lock before calling. Example: https://github.com/mongodb/mongo/blob/f876f3c121484c7d66dc622d662a7aa25f5c9c6f/src/mongo/client/replica_set_monitor_manager.cpp#L152

            Assignee:
            drew.beckmen@mongodb.com Drew Beckmen
            Reporter:
            didier.nadeau@mongodb.com Didier Nadeau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: