]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush/CrushWrapper: add update_weight_sets arg to adjust_item_weight_*
authorSage Weil <sage@redhat.com>
Thu, 14 Mar 2019 16:29:10 +0000 (11:29 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Mar 2019 09:57:50 +0000 (04:57 -0500)
commitd2f1440d7ae4635eaff8c75d38db454ab55f9d22
treeea2024985e59b5f45afa65ce84213da826e6561e
parent937da65265e81090ec6e4ae8b14184c4f175564a
crush/CrushWrapper: add update_weight_sets arg to adjust_item_weight_*

- Make it optional whether the weight-set weights are adjusted to
  match the weight.

- Fix the adjustment of the parent bucket(s) so that the
  summations in weight-sets are correctly maintained.  Prior to
  this change, if I adjust any weight, all parent buckets'
  weight-set weights are reset to the bucket's primary weight.

Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h