]> git-server-git.apps.pok.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)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
commit267bd85e7d8547a593d3c49e6e1792e2f4ba7a4b
treeff6e40c8f62cb22cf321481ee85fd5a1231ae10e
parent10b785816f52dd9668a1e0f77671066827b96631
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