From 37bd64405b8a578329b9a903c9a53322ea29caaf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 27 Sep 2017 11:40:36 -0400 Subject: [PATCH] mgr/balancer: more dead code Signed-off-by: Sage Weil --- src/pybind/mgr/balancer/module.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 64d48fa76209f..b576cb6b16ecc 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -711,21 +711,6 @@ class Module(MgrModule): pe.score) return False - def compat_weight_set_reweight(self, osd, new_weight): - self.log.debug('ceph osd crush weight-set reweight-compat') - result = CommandResult('') - self.send_command(result, 'mon', '', json.dumps({ - 'prefix': 'osd crush weight-set reweight-compat', - 'format': 'json', - 'item': 'osd.%d' % osd, - 'weight': [new_weight], - }), '') - r, outb, outs = result.wait() - if r != 0: - self.log.error('Error setting compat weight-set osd.%d to %f' % - (osd, new_weight)) - return - def get_compat_weight_set_weights(self): # enable compat weight-set self.log.debug('ceph osd crush weight-set create-compat') -- 2.39.5