]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/balancer: more dead code
authorSage Weil <sage@redhat.com>
Wed, 27 Sep 2017 15:40:36 +0000 (11:40 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Nov 2017 12:28:49 +0000 (07:28 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/balancer/module.py

index 64d48fa76209f570446bd9bfc6b9530284012a1e..b576cb6b16eccb2d5963b62f5908b91189cd72b0 100644 (file)
@@ -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')