]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix CrushCompiler won't compile maps with empty shadow tree
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 17 Aug 2017 06:45:13 +0000 (14:45 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 17 Aug 2017 10:11:36 +0000 (18:11 +0800)
commit3e4fe5bc7410cecaff86c7c216a3e63eb94f6213
tree357d1c3cb668e42d3cb3cd0191c9796748cc56c1
parent0a8ceaa3a586a9ce03f2021baf385d5326906ac4
crush: fix CrushCompiler won't compile maps with empty shadow tree

Steps to reproduce:
(1) ceph osd crush rm-device-class osd.0
(2) ceph osd crush set-device-class foo osd.0
(3) ceph osd crush rule create-replicated foo_rule default host foo
(4) ceph osd crush rm-device-class osd.0
(5) ceph osd getcrushmap -o crushmap
(6) crushtool -d crushmap -o crushmap.txt
(7) crushtool -c crushmap.txt -o crushmap
    unknown device class 'foo'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/crush/CrushCompiler.cc