]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: move_item: do not clobber weight-set weights
authorSage Weil <sage@redhat.com>
Thu, 14 Mar 2019 18:07:44 +0000 (13:07 -0500)
committerSage Weil <sage@redhat.com>
Fri, 22 Mar 2019 10:02:32 +0000 (05:02 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit c4eefb0b66be57bddbc888ed2b5d2e2a19452b37)

src/crush/CrushWrapper.cc

index dd0d9df326a383ca47cbbc50bdc32a73c02cb0db..12e4ca10e3846aca7a5eb6553d9807aefc70885d 100644 (file)
@@ -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)