]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add invalidate_lru() call back to ObjectCache::put() 19768/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 3 Jan 2018 21:29:32 +0000 (16:29 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 3 Jan 2018 21:29:36 +0000 (16:29 -0500)
the removal of this line was causing s3test failures independently of
the change from list-deque

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_cache.cc

index 779a569625c6c06fb5cb2a171452a46585256d61..48d3c5408774fb86084b31f9a38b169eb2442b39 100644 (file)
@@ -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++;