]> git-server-git.apps.pok.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>
Thu, 8 Feb 2018 05:39:00 +0000 (13:39 +0800)
We will get a worse result if we execute the corresponding plan later.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit ae56d847a083e46d31c0c84f128097019fc0919f)

src/pybind/mgr/balancer/module.py

index b124b1e952f3ac50d7c9fc87e9a38a313d193a8c..cd63b53a7100d4435300d383cf441a933fe7b7e4 100644 (file)
@@ -816,6 +816,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):