diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-07 17:28:31 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-10 22:03:39 -0400 |
commit | 69bfdbc80fd2e66a6eb8cd1fbd4503537c97d7fc (patch) | |
tree | d922b43cde59c63061f871e139eb785ef622a0ac /src/mongo/s/commands/cluster_enable_sharding_cmd.cpp | |
parent | 614f37ffa63190b4310c73877564d2def8d1e756 (diff) | |
download | mongo-69bfdbc80fd2e66a6eb8cd1fbd4503537c97d7fc.tar.gz |
SERVER-18349 Check validity of the database name for movePrimary
Diffstat (limited to 'src/mongo/s/commands/cluster_enable_sharding_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_enable_sharding_cmd.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_enable_sharding_cmd.cpp b/src/mongo/s/commands/cluster_enable_sharding_cmd.cpp index c32deffc98d..3c17bc7433e 100644 --- a/src/mongo/s/commands/cluster_enable_sharding_cmd.cpp +++ b/src/mongo/s/commands/cluster_enable_sharding_cmd.cpp @@ -85,10 +85,6 @@ namespace { } virtual std::string parseNs(const std::string& dbname, const BSONObj& cmdObj) const { - if (cmdObj.firstElement().type() != String) { - return ""; - } - return cmdObj.firstElement().str(); } |