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

getNumConfigVotingMembers allocates and copies a vector under a mutex

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Replication
    • Fully Compatible
    • Security 2024-03-18, Security 2024-04-01

      ReplicationCoordinator::getNumConfigVotingMembers() creates a vector and copies it just to return the size. This is called while holding the ReplicationCoordinator mutex, which is wasteful.

      This function is called once per operation waiting for write concern.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: