]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: check against dead crush rule
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 30 Jul 2018 00:40:59 +0000 (08:40 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 9 Aug 2018 00:44:58 +0000 (08:44 +0800)
commit8a77e1f4dc0668e5ad568bcefc6942d77b8a6eb5
tree542d5006314941a0e7e9cc6e18430e6ce4e0d4fe
parentbcc11541b86762d5821b24ef220b6ef079da2515
crush/CrushWrapper: check against dead crush rule

We currently remove a rule without adjusting the **rules** array
because we don't recycle the rule_no and hence there can be
holes in the "rules" array.

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