From c4eefb0b66be57bddbc888ed2b5d2e2a19452b37 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 14 Mar 2019 13:07:44 -0500 Subject: [PATCH] crush/CrushWrapper: move_item: do not clobber weight-set weights Signed-off-by: Sage Weil --- src/crush/CrushWrapper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index dd0d9df326a3..12e4ca10e384 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1184,7 +1184,8 @@ int CrushWrapper::move_bucket( int bucket_weight = detach_bucket(cct, id); // insert the bucket back into the hierarchy - return insert_item(cct, id, bucket_weight / (float)0x10000, id_name, loc); + return insert_item(cct, id, bucket_weight / (float)0x10000, id_name, loc, + false); } int CrushWrapper::detach_bucket(CephContext *cct, int item) -- 2.47.3