]> 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>
Thu, 28 Apr 2022 18:03:20 +0000 (14:03 -0400)
commitfc2b66a244de0c03d8112a0c29ef120a9d922303
treeb747570970071a1c3dbfac262b177ea827941572
parent77d96c7d736197d5872265d02aa6041a0db42453
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