]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: make 'remove_root' idempotent
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 31 Jul 2017 09:24:55 +0000 (17:24 +0800)
committerSage Weil <sage@redhat.com>
Thu, 3 Aug 2017 21:26:26 +0000 (17:26 -0400)
commitf134a14eff89ac160406753ea8577af1d6df3952
treef065e208aa7e52a1f74d3254aee069654f7febbf
parentb17287ef14ba2cf67a05dae5cb5d3b5ca3b9b148
crush: make 'remove_root' idempotent

We might use 'crush link' to link same host into
different roots, which as a result can cause different
shadow trees reference same hosts too.

This means we may need to destory the same buckets(hosts, racks, etc.)
multiple times during rebuilding all shadow trees and hence 'remove_root'
shall be idempotent.

Fixes: http://tracker.ceph.com/issues/20845
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/crush/CrushWrapper.cc