[SERVER-19454] Remove useless check of shard host from movePrimary command Created: 16/Jul/15  Updated: 25/Jan/17  Resolved: 16/Jul/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.1.6

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 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.



 Comments   
Comment by Githook User [ 16/Jul/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-19454 Remove useless check of shard host from movePrimary command
Branch: master
https://github.com/mongodb/mongo/commit/ad9ffd74d9febd91fd5bec1807d64728699808d5

Generated at Thu Feb 08 03:51:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.