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

Remove useless check of shard host from movePrimary command

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.6
    • Sharding
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: