]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: forward delete bucket request to master after removal
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 18 Jul 2013 18:16:15 +0000 (11:16 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 19 Jul 2013 20:21:49 +0000 (13:21 -0700)
commit85f3f09b0a064f02c09ce7e014bddfe2b6217cbd
treee6ba9e8bb90a4e432862bcd2e95e67094cd26959
parent989a4d93d88d5342c8369c7f9c22af66601bfdbf
rgw: forward delete bucket request to master after removal

We can only forward the bucket removal to the master if it was
successfully removed locally.
The master region has no knowledge about whether the
bucket can be removed or not, e.g., there are still objects in the
bucket. If we send it to the master first, then it'll happily remove it
even though it might fail in the end.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_op.cc