fix lru eviction in async name match store

This commit is contained in:
Ryan Fleury
2024-11-12 14:36:40 -08:00
parent 626665911d
commit ff90a90744
+2 -2
View File
@@ -1545,8 +1545,8 @@ di_match_store_begin(DI_MatchStore *store, DI_KeyArray keys)
{
for(DI_MatchNameNode *node = store->last_lru_match_name, *prev = 0; node != 0; node = prev)
{
prev = node->prev;
if(node->last_gen_touched+64 < store->gen)
prev = node->lru_prev;
if(node->last_gen_touched+8 < store->gen)
{
node->alloc_gen += 1;
U64 slot_idx = node->hash%store->match_name_slots_count;