]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add streamlined ways to handle indexless buckets correctly
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 24 Jan 2022 21:08:01 +0000 (16:08 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 28 Apr 2022 17:51:25 +0000 (13:51 -0400)
commitda25a861e30fdd04dfbbed40ef9eab7ffdd513fc
treeb53c1e0b1c3184c0336031fc57a0926e697f1ff2
parent5fab3afd2a55f80bc87725be865f0996d2ebbf0d
rgw: add streamlined ways to handle indexless buckets correctly

Determining whether a bucket is indexless starting with an
RGWBucketInfo object requires traversing multiple data structures and
"inside knowledge" blurring the line between interface and
implementation. The same applies for retrieving the current index for
non-indexless buckets.

This commit adds to the RGWBucketInfo interface to make this
information readily accessible.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_bucket_layout.h
src/rgw/rgw_common.h