]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crushtool: make --reweight re-sum choose_args weight-sets too
authorSage Weil <sage@redhat.com>
Fri, 26 Oct 2018 14:32:27 +0000 (09:32 -0500)
committerSage Weil <sage@redhat.com>
Wed, 28 Nov 2018 02:36:43 +0000 (20:36 -0600)
commit0f6a36e1e4d24c87668de157d9360f466e83a32f
tree4cde45a8d3cf283c14ca94b6f50279b2ab470e4b
parentc9921dc7e9da6e0b23a8c9a5652dcaa6963b54bc
crushtool: make --reweight re-sum choose_args weight-sets too

This ensures that the weights add us for each weight-set (and each
position).  Note that since we don't have anything that actually
creates positional weight-sets, the behavior here might not be what we
want in the end, but for the compat weight-sets (no position), we *do*
keep the weights as a properly summing tree.

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