|
As of SERVER-73685 the way to make the config server a catalog shard is to run the transitionToCatalogShard command. A user can still attempt to add the config server as a shard via addShard, which is correctly rejected, but will trigger removing the ReplicaSetMonitor for the config server via this scope guard, which should not happen because the config server still needs to be able to target itself.
We should also investigate if addShard/transitionToCatalogShard is creating a new RSM for the config server when it creates a Shard object here. The config server will always already have an RSM for itself, so this would be unnecessary.
|