]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 27 Nov 2018 02:09:04 +0000 (21:09 -0500)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit 269713d0f80a611fc61f5946738a879dcd55597b)

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;