]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete 55715/head
authorCasey Bodley <cbodley@redhat.com>
Sun, 18 Feb 2024 15:29:13 +0000 (10:29 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 22 Feb 2024 16:40:51 +0000 (11:40 -0500)
commit6ea7d2dbae441e0acf63b252b5ced3f93be54619
treeacb15c3341af6f185726bae8d763f908834f581a
parent0b7ee879c2d2bce17e93d24aa00f71d8199d0027
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>
(cherry picked from commit 0eebbc3f02ad153d41d23de227bd989da50e54cf)
src/rgw/services/svc_sys_obj_cache.cc