fix: unblock CP host eviction past stale leaves
This commit is contained in:
@@ -1102,6 +1102,11 @@ class HiRadixCache(RadixCache):
|
||||
continue
|
||||
|
||||
if not self._node_backuped(x):
|
||||
if len(x.children) == 0:
|
||||
parent = self._remove_host_leaf(x)
|
||||
if parent.evicted and self._node_backuped(parent):
|
||||
new_priority = self.eviction_strategy.get_priority(parent)
|
||||
heapq.heappush(eviction_heap, (new_priority, parent))
|
||||
continue
|
||||
|
||||
if x.pin_expiry > 0 and time.monotonic() > x.pin_expiry:
|
||||
|
||||
Reference in New Issue
Block a user