]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/balancer: do not dirty compat_ws on error out
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 30 Jan 2018 08:42:22 +0000 (16:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 30 Jan 2018 09:02:35 +0000 (17:02 +0800)
We will get a worse result if we execute the corresponding plan later.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/balancer/module.py

index 0253de924549061d3c24a2b6836d17032cb2739e..ed2bbfaa979dcd40810e09d8f48b690e5d3687b4 100644 (file)
@@ -800,6 +800,7 @@ class Module(MgrModule):
         else:
             self.log.info('Failed to find further optimization, score %f',
                           pe.score)
+            plan.compat_ws = {}
             return False
 
     def get_compat_weight_set_weights(self):