]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd:osdmap some clean up 7231/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 15 Jan 2016 05:38:59 +0000 (13:38 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 15 Jan 2016 05:38:59 +0000 (13:38 +0800)
remove set_weightf

Fixes: #14369
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/osd/OSDMap.h

index e8e39af08d01bf75240fbd9ad43ffd9415a98746..24c287f4aa81af37edf7784349bde6aeb4f50ba7 100644 (file)
@@ -369,9 +369,6 @@ public:
     assert(o < max_osd);
     osd_state[o] = s;
   }
-  void set_weightf(int o, float w) {
-    set_weight(o, (int)((float)CEPH_OSD_IN * w));
-  }
   void set_weight(int o, unsigned w) {
     assert(o < max_osd);
     osd_weight[o] = w;