]> git.apps.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>
Tue, 15 Jul 2025 14:57:53 +0000 (10:57 -0400)
commit75d2089b8e74d0005db7710019a8b19140fb0a64
tree66335513302d00e1e5e5c3f538c3da3617f74e49
parenta00b5986cd67390b28b0f004a3f929dca23997d2
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>
(cherry picked from commit c02906ae6463425ef3f00000ba1ce78fcc9e2478)
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