[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: SERVER-85906 Optimize supportsReplicaSetEndpoint check

GitOrigin-RevId: 8aba359f2352c1956d274d3155086846fe5f21df
Branch: master
https://github.com/mongodb/mongo/commit/fcc6995b730230b41e53c404d0456ab53a2bdd69

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