]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/sysobj: read() can query size/mtime
authorCasey Bodley <cbodley@redhat.com>
Tue, 7 Mar 2023 22:28:54 +0000 (17:28 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 7 Mar 2023 23:14:00 +0000 (18:14 -0500)
commit20ab42758c8ba0cef867752be3b215064d44a6f2
tree37fd9bf612afc4405c223153a6118dc9381aee3c
parentf96dd0dda632c9cc439aa54a6cfeb7a951cea63c
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>
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