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)
# allow a small regression if we are phasing out osd weights
fudge = 0
- if next_ow != orig_osd_weight:
+ if best_ow != orig_osd_weight:
fudge = .001
if best_pe.score < pe.score + fudge: