]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add an "object reindex" subcommand to radosgw-admin
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 2 Mar 2023 04:41:12 +0000 (23:41 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 9 Mar 2023 16:00:57 +0000 (11:00 -0500)
commitbe0583c3082b9f924fcdbe4c81d540ad08bcca24
tree73a9fd7d0bda3b2f69f77db276d31d527fa33535
parent44e4dfd0d8d31f3da4cb9cb96b8d7ba4f587b37c
rgw: add an "object reindex" subcommand to radosgw-admin

This subcommand will take a bucket and an object (or a list of objects
in a file) and add those objects to the bucket's index. It does so by
preparing the bucket index entry update and then allowing the
so-called "dir suggest" mechansim, which is triggered by listing the
bucket, to completing the bucket index entry. This mechanism is
triggered by listing the bucket.  Using this mechanism has the
advantage of doing this lazily that both allows the reindex operation
to run more quickly and distributes the workload over time.

This subcommand can help restore lost bucket index entries.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/rgw_admin.cc
src/test/cli/radosgw-admin/help.t