Do not free simple hash entries

This commit is contained in:
Konstantin Knizhnik
2023-06-21 18:23:06 +03:00
parent 593c4244fd
commit f88ff9f3c6

View File

@@ -124,7 +124,6 @@ bool is_sequential_access(RelFileNode rnode, ForkNumber forkNum, BlockNumber blk
/* Hash overflow: find candidate for replacement */
AccessStatEntry* victim = dlist_container(AccessStatEntry, lru_node, dlist_pop_head_node(&lru));
as_delete_item(hash, victim);
pfree(victim);
}
entry = as_insert(hash, rnode, &found);
Assert(!found);