diff options
author | Kefu Chai <tchaikov@gmail.com> | 2017-08-24 23:15:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 23:15:38 +0800 |
commit | 457c145aefd30a852f525fbf76a871f676502c0a (patch) | |
tree | 7cca1e1caac99232e324551c2ed47fa92f1c8792 | |
parent | 8ed5fe0f32a661c8e06840a6417ab6efb48cc57b (diff) | |
parent | 7e3528a9dc7fb53bce5b2c39b644c2b2b2c5d417 (diff) | |
download | ceph-457c145aefd30a852f525fbf76a871f676502c0a.tar.gz |
Merge pull request #17083 from xiexingguo/wip-swap-bucketv13.0.0
crush: force rebuilding shadow hierarchy after swapping buckets
Reviewed-by: Sage Weil <sage@redhat.com>
-rw-r--r-- | src/crush/CrushWrapper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index fcf503c06b0..fd211109252 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1075,7 +1075,7 @@ int CrushWrapper::swap_bucket(CephContext *cct, int src, int dst) // swap names swap_names(src, dst); - return 0; + return rebuild_roots_with_classes(); } int CrushWrapper::link_bucket( |