getNumConfigVotingMembers allocates and copies a vector under a mutex

XMLWordPrintableJSON

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

      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
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: