-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
v5.0, v4.4, v4.2, v4.0
-
Repl 2021-06-14, Repl 2021-06-28
-
120
ReplicationCoordinatorImpl::getConfig() copies the whole config which can be a subtle performance trap as we have seen in SERVER-40250. It's an issue in SERVER-46186's patch as well.
We can either return a const reference or expose a way to call member functions on the config without copying it.