]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix device_class_clone for unpopulated/empty weight-sets 22381/head
authorSage Weil <sage@redhat.com>
Mon, 21 May 2018 18:24:25 +0000 (13:24 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 4 Jun 2018 01:15:17 +0000 (21:15 -0400)
commitd104c93f427709cb8181cb018d150bf1bc000a96
tree64669d3a44d4c09c283f8c8efa9403ca64d5786d
parent4891e77abab5174de47d78be0ef2539018cc5fbd
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