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

Remove useless check of shard host from movePrimary command

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.6
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible

      The movePrimary command does a check that the host name of the shard exists in the config.shards collection. But we got the host name by looking up the shard identifier, which means the shard must exist. This check is left over from when movePrimary took the target shard by hostname instead of shard name. Now it is redundant of the other checks in place for shard existence.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: