]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: fix remove_item on bucket removal
authorSage Weil <sage@inktank.com>
Thu, 21 Mar 2013 18:15:30 +0000 (11:15 -0700)
committerSage Weil <sage@inktank.com>
Fri, 22 Mar 2013 22:15:38 +0000 (15:15 -0700)
commitb54db77ede57e6fa706cdad9fdf14bcaf69d2d0f
tree102cab8a2b4789ef3e86922ce1e4374d9f14c6b0
parentd8f4be6e6db954cc56e9da13c7903bc52aa6de80
crush: fix remove_item on bucket removal

Remove the bucket if there are no references left.

Remove the name from the map even if it is a bucket (not sure why that
condition was there in the first place!).

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.cc