[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. |