]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: bucket meta remove don't overwrite entry point first
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 19 Aug 2013 23:56:27 +0000 (16:56 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 27 Nov 2013 22:45:57 +0000 (14:45 -0800)
commit8cd33e3a8ebf7c2aa796ec9f92d6b554c39ff705
tree3140ed76ba4ded30af9ef19a7cdb99ef42d26fd7
parenta24f1326adcdda1d387e0f4e3c18dda5ec4aa055
rgw: bucket meta remove don't overwrite entry point first

Fixes: #6056
When removing a bucket metadata entry we first unlink the bucket
and then we remove the bucket entrypoint object. Originally
when unlinking the bucket we first overwrote the bucket entrypoint
entry marking it as 'unlinked'. However, this is not really needed
as we're just about to remove it. The original version triggered
a bug, as we needed to propagate the new header version first (which
we didn't do, so the subsequent bucket removal failed).

Reviewed-by: Greg Farnum <greg@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 0373d749cea7d9b532069ba8ebca2f005b2c9f59)
src/rgw/rgw_bucket.cc