]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: drop redundant assignment
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 1 Jun 2016 03:39:54 +0000 (11:39 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 1 Jun 2016 22:34:16 +0000 (06:34 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MDSMonitor.cc

index f78df26496f87fd793c7fffca4b591d404bdbc57..5ae7d0c7693c86a3b83f9b76f83635f25135df57 100644 (file)
@@ -2091,7 +2091,6 @@ class RemoveDataPoolHandler : public FileSystemCommandHandler
       string err;
       poolid = strict_strtol(poolname.c_str(), 10, &err);
       if (err.length()) {
-       poolid = -1;
        ss << "pool '" << poolname << "' does not exist";
         return -ENOENT;
       } else if (poolid < 0) {
@@ -2103,7 +2102,6 @@ class RemoveDataPoolHandler : public FileSystemCommandHandler
     assert(poolid >= 0);  // Checked by parsing code above
 
     if (fs->mds_map.get_first_data_pool() == poolid) {
-      poolid = -1;
       ss << "cannot remove default data pool";
       return -EINVAL;
     }