]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: ObjectCache::put() clears stale objv 37459/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 8 Sep 2020 19:27:55 +0000 (15:27 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2020 15:52:06 +0000 (17:52 +0200)
commitbfc1abd84c2c8d0d01515a99b44f9b6df9ed5c01
tree67e96e3878db4ce42eeb3ecdffa8a2f174b1f209
parentd5a3421bf78441252d26becffc2ab32143141d7d
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>
(cherry picked from commit cf531cdd5e655a033f47e04b7dda81435a90271d)
src/rgw/rgw_cache.cc