-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Service Arch
Make the _rsConfig in ReplicationCoordinatorImpl hazard pointer protected. There are a ton of methods that just lock the (very hot) _mutex just to read the config, and unlock before acting on it. Given that callers are already OK with accepting stale returns (otherwise they would need to hold the mutex themselves) it should be safe. Examples include but are not limited to all of these.
- duplicates
-
SERVER-89631 Make reading `ReplSetConfig` mostly lock-free
- Closed