[SERVER-85906] Optimize supportsReplicaSetEndpoint check Created: 30/Jan/24 Updated: 30/Jan/24 Resolved: 30/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 8.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Cheahuychou Mao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Cluster Scalability 2024-2-5 |
| Participants: |
| Description |
|
The helper should check the feature flag, the clusterRole and the "hasTwoOrMoreShards" cluster parameter separately from _isConfigShard so that we don't take the ReplicaSetEndpointShardingState's mutex unless we need to. |
| Comments |
| Comment by Githook User [ 30/Jan/24 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}Message: GitOrigin-RevId: 8aba359f2352c1956d274d3155086846fe5f21df |