diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-07-16 14:55:02 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-07-16 17:53:28 -0400 |
commit | ad9ffd74d9febd91fd5bec1807d64728699808d5 (patch) | |
tree | 97c6ca37668c49bc2b5c317d099e2509c0c166ad /src/mongo/s/commands | |
parent | cb58f391332c1ae196e128babccce48f95049dd4 (diff) | |
download | mongo-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.cpp | 5 |
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(); |