From: Sage Weil Date: Wed, 27 Sep 2017 15:40:36 +0000 (-0400) Subject: mgr/balancer: more dead code X-Git-Tag: v12.2.2~44^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37ed6f218ba4fafd5360b8f62feb321a1feec56f;p=ceph.git mgr/balancer: more dead code Signed-off-by: Sage Weil (cherry picked from commit 37bd64405b8a578329b9a903c9a53322ea29caaf) --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 64d48fa7620..b576cb6b16e 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')