The Shard object should become the container for all shard connections, targeting and monitoring logic.
Thus, it should be made non-copyable and it's lifetime should be managed by the ShardRegistry.
A new type ShardId should be introduced, which will be used in all places which store Shard values currently.
- related to
-
SERVER-19929 Audit sharding code for potential use-after-frees
- Closed