]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: ObjectCache::put() clears stale objv
authorCasey Bodley <cbodley@redhat.com>
Tue, 8 Sep 2020 19:27:55 +0000 (15:27 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 8 Sep 2020 19:31:07 +0000 (15:31 -0400)
commitcf531cdd5e655a033f47e04b7dda81435a90271d
treeb9bcc5a54b4e504171e40e05ebdbf10ede8d692c
parentb057b162157b518c5803e3bdbcbb25dc35caded6
rgw: ObjectCache::put() clears stale objv

if an existing object is cached with an object version, but it's
mutated without updating that version number, clear the OBJV flag so
that later cache reads asking for an object version result in a miss and
re-read the version from the osd

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