]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush: fix device_class_clone for unpopulated/empty weight-sets
authorSage Weil <sage@redhat.com>
Mon, 21 May 2018 18:24:25 +0000 (13:24 -0500)
committerSage Weil <sage@redhat.com>
Mon, 21 May 2018 18:39:47 +0000 (13:39 -0500)
commit452b5217406fc44cfd89003032ff1af9f6498675
tree831d1e693d3b29d3437c0e81f2c4171ef4a0f373
parentc7ca50231a34b5515e1ca379292b28bd467b2ad6
crush: fix device_class_clone for unpopulated/empty weight-sets

If the bucket is empty or does not have weight-set weights yet, avoid
crashing when populating the parent bucket.

Fixes: http://tracker.ceph.com/issues/23386
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/mon/crush_ops.sh
src/crush/CrushWrapper.cc