]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/sysobj: read() can query size/mtime 50484/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 7 Mar 2023 22:28:54 +0000 (17:28 -0500)
committerCasey Bodley <cbodley@redhat.com>
Sat, 11 Mar 2023 20:13:00 +0000 (15:13 -0500)
commite7449eb7a7fcffb71a1416576b278c7ef005ffd6
treee3545c6f5d34cc02d753b51e8ffc1adb1afa2c29
parentace1b1bb16106145697d320bdb92181691dbfc57
rgw/sysobj: read() can query size/mtime

rgw_get_system_obj() stopped calling stat() before read() in
90aec61298fc378e1733bc76f0d3f95ce8ec135a, which left the optional
'real_time *pmtime' argument uninitialized

when requested, read() will add a stat op to initialize size/mtime

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 20ab42758c8ba0cef867752be3b215064d44a6f2)
src/rgw/services/svc_sys_obj.cc
src/rgw/services/svc_sys_obj_cache.cc
src/rgw/services/svc_sys_obj_cache.h
src/rgw/services/svc_sys_obj_core.cc
src/rgw/services/svc_sys_obj_core.h