Use the catalog manager to query shards in a sharded cluster

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2 04/24/15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Daniel Alabi (Inactive)
            Reporter:
            Daniel Alabi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: