]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: bucket recreation should not clobber bucket info
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Feb 2013 00:43:48 +0000 (16:43 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Feb 2013 21:25:28 +0000 (13:25 -0800)
commit9d006ec40ced9d97b590ee07ca9171f0c9bec6e9
tree6b2d37eec4fcef683c033df9dab8799c95da2334
parentb663c097d1e6f41aed9abeadaae80f66fc71f5ec
rgw: bucket recreation should not clobber bucket info

Fixes: #4039
User's list of buckets is getting modified even if bucket already
exists. This fix removes the newly created directory object, and
makes sure that user info's data points at the correct bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc