summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2017-08-24 23:15:38 +0800
committerGitHub <noreply@github.com>2017-08-24 23:15:38 +0800
commit457c145aefd30a852f525fbf76a871f676502c0a (patch)
tree7cca1e1caac99232e324551c2ed47fa92f1c8792
parent8ed5fe0f32a661c8e06840a6417ab6efb48cc57b (diff)
parent7e3528a9dc7fb53bce5b2c39b644c2b2b2c5d417 (diff)
downloadceph-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.cc2
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(