]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: enhances rgw-restore-bucket-index script
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 14 Jun 2023 19:53:19 +0000 (15:53 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 30 Aug 2023 18:41:15 +0000 (14:41 -0400)
commitc02906ae6463425ef3f00000ba1ce78fcc9e2478
tree9df56eef8abcaa44ce7358217be014e7be4f4ea3
parentf731570bb11a473d4acc6ad75dce77c3be0204aa
rgw: enhances rgw-restore-bucket-index script

This enhances the script to both process versioned buckets correctly
and to handle object names that begin with underscore.

If the bucket is versioned it submits each version chronologically
(based on mtime) to be reindexed in order to "replay" the modification
of objects. However mtime is not a perfect indicator. So additionally
it looks at the OLH object to determine the most recent version and
the script makes sure that it is replayed last. The order of previous
versions is likely correct, but not guaranteed to be so.

Additional logic is added to handle objects with names that begin with
underscore ('_') since that's used as a delimiter and needs to be
escaped and rados object locators are also used.

A man page for the script is added.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
ceph.spec.in
debian/radosgw.install
doc/man/8/CMakeLists.txt
doc/man/8/rgw-restore-bucket-index.rst [new file with mode: 0644]
doc/man_index.rst
src/rgw/rgw-restore-bucket-index