]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
kv/rocksdb_cache/BinnedLRUCache: Don't promote data to the high pri pool.
authorMark Nelson <mnelson@redhat.com>
Tue, 3 Jul 2018 22:30:23 +0000 (17:30 -0500)
committerMark Nelson <mnelson@redhat.com>
Thu, 9 Aug 2018 21:50:51 +0000 (16:50 -0500)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/kv/rocksdb_cache/BinnedLRUCache.cc

index 6677d88ef4ccc2c944b6222e55326dec1a79abc2..19e89141342590d56529dc7790a7716d49acc0d3 100644 (file)
@@ -202,7 +202,7 @@ void BinnedLRUCacheShard::LRU_Remove(BinnedLRUHandle* e) {
 void BinnedLRUCacheShard::LRU_Insert(BinnedLRUHandle* e) {
   assert(e->next == nullptr);
   assert(e->prev == nullptr);
-  if (high_pri_pool_ratio_ > 0 && (e->IsHighPri() || e->HasHit())) {
+  if (high_pri_pool_ratio_ > 0 && e->IsHighPri()) {
     // Inset "e" to head of LRU list.
     e->next = &lru_;
     e->prev = lru_.prev;