]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete
authorCasey Bodley <cbodley@redhat.com>
Sun, 18 Feb 2024 15:29:13 +0000 (10:29 -0500)
committerCasey Bodley <cbodley@redhat.com>
Sun, 18 Feb 2024 15:30:00 +0000 (10:30 -0500)
commit0eebbc3f02ad153d41d23de227bd989da50e54cf
tree2d47b00694af2255674f28b050931515b86b1f4d
parent34933f5120e4bb7c7ab5281eeaf511cfa5253a84
rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete

invalidating the cache before the librados delete means that a racing call
to `RGWSI_SysObj_Cache::read()` may succeed and repopulate the cache. in
that case, subsequent reads will continue to return cached data even after
the librados delete succeeds

Fixes: https://tracker.ceph.com/issues/64480
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/services/svc_sys_obj_cache.cc