]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix detach_bucket 2920/head
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 18:59:22 +0000 (10:59 -0800)
committerSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 18:59:58 +0000 (10:59 -0800)
commit6f8b96a9fe4793906c74a571109a457aca7ca220
treebd0ffb8a2ee788410a47680ca463af1f2d7154ff
parentd76bfc2e8ebed3a187d4b6c6019f6782255cabe7
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>
src/crush/CrushWrapper.h