Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17848

Use the catalog manager to query shards in a sharded cluster

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2 04/24/15
    • None
    • 3
    • 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@10gen.com Daniel Alabi (Inactive)
            Reporter:
            daniel.alabi@10gen.com Daniel Alabi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: