]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
MDSMonitor: dead debugging code
authorDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 00:40:53 +0000 (17:40 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 01:46:54 +0000 (18:46 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/mon/MDSMonitor.cc

index 5e6941247e80dac4baf23b1a3e6509065fa07ca6..0314f2b2e4d18b8c87511e0f314ec5df3a8167b8 100644 (file)
@@ -826,11 +826,6 @@ bool MDSMonitor::prepare_command(MMonCommand *m)
 
   } else if (prefix == "mds set_max_mds") {
     int64_t maxmds;
-    if (cmdmap["maxmds"].which() != 2) {
-      ss << "wtf: maxmds's type is not 2, but rather " << cmdmap["maxmds"].which();
-      r = -EINVAL;
-      goto out;
-    }
     if (!cmd_getval(g_ceph_context, cmdmap, "maxmds", maxmds) || maxmds < 0)
       goto out;
     pending_mdsmap.max_mds = maxmds;