]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: insert_item: make weight-set update optional (for leaves only)
authorSage Weil <sage@redhat.com>
Thu, 14 Mar 2019 17:40:23 +0000 (12:40 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Mar 2019 09:57:50 +0000 (04:57 -0500)
commit5579f388af18c55d03cbf32c244488ee38169fc2
tree13230d4de114b2af24efe61615448bb870502c03
parentd2f1440d7ae4635eaff8c75d38db454ab55f9d22
crush/CrushWrapper: insert_item: make weight-set update optional (for leaves only)

If it is a bucket, we should sum the weight-set values to weight
the bucket in the subtrees.  It only makes sense to reset the
weight-set weights for leaf items.

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