]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: use get_current_index() instead of log_to_index_layout()
authorCasey Bodley <cbodley@redhat.com>
Tue, 18 Jan 2022 21:43:42 +0000 (16:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
commit165eae9bb6ac3f70a001060ecc35e766213c595b
treed21b268ef513c7005c3f47182babb192e684b139
parentb993001d38fc43a40f3861d85e1f8448f523a04f
rgw: use get_current_index() instead of log_to_index_layout()

several places were getting the current index layout indirectly
with layout.logs.back() and rgw::log_to_index_layout(). use
get_current_index() instead so we don't rely on layout.logs, which may
be empty for indexless buckets

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_bucket.cc
src/rgw/rgw_quota.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_sal_rados.cc