]> git-server-git.apps.pok.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)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
commit177bb80cd58d989adbf59ea343c540abc6aaeae8
tree702f9a76d82ea327af34ba6e9180fb3afb004804
parent98e72261ea7bbfe6c3642e795758fc9cf751221e
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