]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix detach_bucket
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 18:59:22 +0000 (10:59 -0800)
committerSage Weil <sage@redhat.com>
Fri, 13 Feb 2015 16:30:45 +0000 (08:30 -0800)
commit80ec22014deb8536b9c34e8d57b286052898d05a
tree9caa79c2d9afe3152aeb119c3b5503f275738482
parent5bc554ac5a7a4cd86b873bfc4f4313c91287b52c
crush/CrushWrapper: fix detach_bucket

In commit 9850227d2f0ca2f692a154de2c14a0a08e751f08 we changed the call that
changed the weight of all instances of item to one that explicitly
changes it in the parent bucket, but parent_id may not be valid at the
call site.  Move this into the conditional block to fix.

Fixes: #10095
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 6f8b96a9fe4793906c74a571109a457aca7ca220)
src/crush/CrushWrapper.h