]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: resharding causes bucket attributes to be lost
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 7 Jan 2022 17:32:48 +0000 (12:32 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 2 Feb 2022 00:09:13 +0000 (19:09 -0500)
commitccdd026be3aba4ef71cb7baeb4f3fd25b8f62835
tree5854c0bb788b76887b22d83b285bfd7a26175d37
parent804dc9519e93f805bdbed24f47045496b1a8ca63
rgw: resharding causes bucket attributes to be lost

With the new resharding code, some bucket metadata that is stored as
xattrs (e.g., ACLs, life-cycle policies) were not sent with the
updated bucket instance data when resharding completed. As a result,
resharding has a regression where that metadata is lost after a
successful reshard.

This commit restores the variable in the RGWBucketReshard class that
maintains the bucket attributes, so they can be saved when the bucket
instance object is updated.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_reshard.cc
src/rgw/rgw_reshard.h