Details
Description
In some places in src/mongo/s, we directly query the config server for the shards, we should use the catalog manager instead.
For example,
ScopedDbConnection conn(configServer.getPrimary().getConnString(), 30);
|
auto_ptr<DBClientCursor> cursor(conn->query(ShardType::ConfigNS , Query()));
|
in balancer_policy.cpp