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=refs%2Fpull%2F19768%2Fhead;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 779a569625c..48d3c540877 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++;