]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: save bucket instance xattrs when resharding cancelled
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 7 Jan 2022 19:43:05 +0000 (14:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
commitf0080c24b3e3e642ed35a9039ea45c67b07c11ca
tree7325931f7aeaaf75db3b5506502c3fcdac44f206
parent267bd85e7d8547a593d3c49e6e1792e2f4ba7a4b
rgw: save bucket instance xattrs when resharding cancelled

There appears to be a long-standing bug in RGW such that when
resharding is cancelled and the bucket instance is updated to reflect
the new resharding status, the xattrs were lost. The xattrs are used
to store metadata such as ACLs and LifeCycle policies.

This commit makes sure that all call paths that lead to a cancelled
reshard provide the xattrs, so they can be included when the bucket
instance info is updated.

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