From d48369bf7cc52c9e0edb1f6b6690aa09e4be81e4 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 (cherry picked from commit ae56d847a083e46d31c0c84f128097019fc0919f) --- 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 b124b1e952f3a..cd63b53a7100d 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): -- 2.39.5