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

getNumConfigVotingMembers allocates and copies a vector under a mutex

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Replication

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: