The DBConfig::getAllShardIds method returns all shards on which collections from a particular database have chunks, plus the primary shard. It is only used by map/reduce with sharded output in order to provide a set of shards on which to spread the output collection.
Instead of using this methodology we should just use all available shards.
- is depended on by
-
SERVER-20854 Don't refresh database and collection information from config server while holding a mutex
- Closed