]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: fix fudge 28279/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:29:33 +0000 (12:29 +0800)
commit555d011437bf9094e5ebc8a329e0d281cfd81d72
tree60dd2001701ca13b70f02239a372f2b06fa37ffc
parent11cd731af1818081d5ec6780f642589232c4829f
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