mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
kv/rocksdb_cache/BinnedLRUCache: Don't promote data to the high pri pool.
Signed-off-by: Mark Nelson <mnelson@redhat.com>
This commit is contained in:
parent
9dd6b2885e
commit
269713d0f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user