]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: rm nonused variable 8423/head
authorWei Jin <wjin.cn@gmail.com>
Sun, 3 Apr 2016 06:20:16 +0000 (14:20 +0800)
committerWei Jin <wjin.cn@gmail.com>
Sun, 3 Apr 2016 06:20:16 +0000 (14:20 +0800)
Signed-off-by: Wei Jin <wjin.cn@gmail.com>
src/osd/OSDMap.cc

index 37986527af738d6eaba639fb7f5e09ca8fa84a66..3d06df65b32a522d939df1c8869a7a5c74fa2fb6 100644 (file)
@@ -2641,7 +2641,7 @@ int OSDMap::build_simple(CephContext *cct, epoch_t e, uuid_d &fsid,
     set_max_osd(nosd);
   } else {
     // count osds
-    int maxosd = 0, numosd = 0;
+    int maxosd = 0;
     const md_config_t *conf = cct->_conf;
     vector<string> sections;
     conf->get_all_sections(sections);
@@ -2659,7 +2659,7 @@ int OSDMap::build_simple(CephContext *cct, epoch_t e, uuid_d &fsid,
        lderr(cct) << "[osd." << o << "] in config has id > mon_max_osd " << cct->_conf->mon_max_osd << dendl;
        return -ERANGE;
       }
-      numosd++;
+
       if (o > maxosd)
        maxosd = o;
     }