From: xie xingguo Date: Tue, 30 Jan 2018 08:42:22 +0000 (+0800) Subject: pybind/mgr/balancer: do not dirty compat_ws on error out X-Git-Tag: v12.2.5~81^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d48369bf7cc52c9e0edb1f6b6690aa09e4be81e4;p=ceph.git pybind/mgr/balancer: do not dirty compat_ws on error out We will get a worse result if we execute the corresponding plan later. Signed-off-by: xie xingguo (cherry picked from commit ae56d847a083e46d31c0c84f128097019fc0919f) --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index b124b1e952f3..cd63b53a7100 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -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):