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: v13.0.2~394^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae56d847a083e46d31c0c84f128097019fc0919f;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 --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 0253de924549..ed2bbfaa979d 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -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):