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

Use the catalog manager to query shards in a sharded cluster

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.2
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2 04/24/15

    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

      Attachments

        Activity

          People

            daniel.alabi@10gen.com Daniel Alabi
            daniel.alabi@10gen.com Daniel Alabi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: