]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/balancer: fix fudge
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 7 May 2019 09:10:21 +0000 (17:10 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 7 May 2019 09:10:21 +0000 (17:10 +0800)
commit8f46a351f1fa6f921b373aed4038efc0898a8a44
tree3a6e4e056b212b655f82f0fe11f4d5cc6d0acd11
parent30a8d911eb50e3ba1a9f7389aed1e816f741e0a4
mgr/balancer: fix fudge

next_* simply record some intermediate results when balancer tries
to find something to optimize, whereas best_* are used for the
final outputs.

Fix by comparing origin_ow with best_ow when determining if we
should use a valid fudge value.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/balancer/module.py