[SERVER-86137] getNumConfigVotingMembers allocates and copies a vector under a mutex Created: 02/Feb/24  Updated: 03/Feb/24

Status: Needs Scheduling
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 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.


Generated at Thu Feb 08 06:59:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.