summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-07-16 14:55:02 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-07-16 17:53:28 -0400
commitad9ffd74d9febd91fd5bec1807d64728699808d5 (patch)
tree97c6ca37668c49bc2b5c317d099e2509c0c166ad /src/mongo/s/commands
parentcb58f391332c1ae196e128babccce48f95049dd4 (diff)
downloadmongo-ad9ffd74d9febd91fd5bec1807d64728699808d5.tar.gz
SERVER-19454 Remove useless check of shard host from movePrimary command
Diffstat (limited to 'src/mongo/s/commands')
-rw-r--r--src/mongo/s/commands/cluster_move_primary_cmd.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/s/commands/cluster_move_primary_cmd.cpp b/src/mongo/s/commands/cluster_move_primary_cmd.cpp
index 4beef73591d..ca28077860a 100644
--- a/src/mongo/s/commands/cluster_move_primary_cmd.cpp
+++ b/src/mongo/s/commands/cluster_move_primary_cmd.cpp
@@ -143,11 +143,6 @@ public:
return false;
}
- if (!grid.catalogManager()->isShardHost(toShard->getConnString())) {
- errmsg = "that server isn't known to me";
- return false;
- }
-
log() << "Moving " << dbname << " primary from: " << fromShard->toString()
<< " to: " << toShard->toString();