]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix device_class_clone for unpopulated/empty weight-sets 22169/head
authorSage Weil <sage@redhat.com>
Mon, 21 May 2018 18:24:25 +0000 (13:24 -0500)
committerKefu Chai <kchai@redhat.com>
Wed, 23 May 2018 06:49:22 +0000 (14:49 +0800)
commit985706b3c158c0651534650d2a2fe80fd58bb2e1
tree7bae939840f825836c27e6d7d484e9a738110c1b
parent0c00c7847a27bc1d222ef05fef637fce04c1d04b
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>
(cherry picked from commit 452b5217406fc44cfd89003032ff1af9f6498675)
qa/workunits/mon/crush_ops.sh
src/crush/CrushWrapper.cc