]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/rados: get_part_obj_state() fixes accounted_size when uncompressed
authorCasey Bodley <cbodley@redhat.com>
Fri, 18 Oct 2024 17:27:51 +0000 (13:27 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 8 Jan 2025 00:17:33 +0000 (19:17 -0500)
commitcbcf0e3eb2059618e5e7d309846d7c3417279660
tree0747ba2b2120a8a208970fb5bafcde530ace6fdb
parent56bf5073cf384d40b8e8f4348a48f7a727f7023e
rgw/rados: get_part_obj_state() fixes accounted_size when uncompressed

the part head objects don't have a RGW_ATTR_MANIFEST attribute, so
get_obj_state_impl() isn't able to set the correct
RGWObjState::accounted_size unless RGW_ATTR_COMPRESSION provides one

get_part_obj_state() builds a fake manifest in memory to represent the
part and updates state.size accordingly, but it hadn't corrected the
value of state.accounted_size

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_rados.cc