]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: create weight-set on demand when doing a choose-args reweight
authorSage Weil <sage@redhat.com>
Fri, 18 May 2018 22:10:14 +0000 (17:10 -0500)
committerSage Weil <sage@redhat.com>
Mon, 21 May 2018 13:43:09 +0000 (08:43 -0500)
commit586ab4aa39ddab9d82f55b6ba41eaf41284953e7
tree95ef43c0d52856f60bb59b37d1e3c006ef09f4fc
parentc4c9f9cba55c8eec21376be1b34ee6259ae6ae29
crush: create weight-set on demand when doing a choose-args reweight

If we try to reweight an item in a choose-args set for a given item
but the bucket doesn't have a weight_set yet, create it on the fly, and
populate it with the canonical bucket weights.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit d8d08b8cbf5b0ad3646dd1e177a1418e96273244)
src/crush/CrushWrapper.cc