From ae56d847a083e46d31c0c84f128097019fc0919f Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 30 Jan 2018 16:42:22 +0800 Subject: [PATCH] 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 --- src/pybind/mgr/balancer/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 0253de92454..ed2bbfaa979 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): -- 2.39.5