From: Casey Bodley Date: Wed, 3 Jan 2018 21:29:32 +0000 (-0500) Subject: rgw: add invalidate_lru() call back to ObjectCache::put() X-Git-Tag: v13.0.2~660^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25b27b5c9d3f5a82769d06d92b9ba59038952ce8;p=ceph.git rgw: add invalidate_lru() call back to ObjectCache::put() the removal of this line was causing s3test failures independently of the change from list-deque Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_cache.cc b/src/rgw/rgw_cache.cc index 779a569625c6..48d3c5408774 100644 --- a/src/rgw/rgw_cache.cc +++ b/src/rgw/rgw_cache.cc @@ -134,6 +134,8 @@ void ObjectCache::put(string& name, ObjectCacheInfo& info, rgw_cache_entry_info ObjectCacheEntry& entry = iter->second; ObjectCacheInfo& target = entry.info; + invalidate_lru(entry); + entry.chained_entries.clear(); entry.gen++;