]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: fix fudge 28399/head
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>
Wed, 5 Jun 2019 04:33:57 +0000 (12:33 +0800)
commit1de65c41b60b277400ebd846b5990950ff6b0f3f
tree6b04ebc891f992ff51e67d301629e41ee0aecc9f
parent3e269f6c0dd01304c989f631f72948ff3e0c7b4a
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>
(cherry picked from commit 8f46a351f1fa6f921b373aed4038efc0898a8a44)
src/pybind/mgr/balancer/module.py