From 5d93a8cc71b14fd28453f3e4087ec2bd7b5868b2 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Mon, 14 Jul 2025 15:09:36 +0300 Subject: [PATCH] Update pgxn/neon/relkind_cache.c Co-authored-by: Heikki Linnakangas --- pgxn/neon/relkind_cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pgxn/neon/relkind_cache.c b/pgxn/neon/relkind_cache.c index 2c301273dd..14dd160825 100644 --- a/pgxn/neon/relkind_cache.c +++ b/pgxn/neon/relkind_cache.c @@ -121,9 +121,7 @@ get_pinned_entry(NRelFileInfo rinfo) while ((entry = hash_search(relkind_hash, &rinfo, HASH_ENTER_NULL, &found)) == NULL) { /* - * Remove least recently used elment from the hash. - * Hash size after is becomes `relkind_hash_size-1`. - * But it is not considered to be a problem, because size of this hash is expecrted large enough and +-1 doesn't matter. + * Remove least recently used element from the hash. */ RelKindEntry *victim = dlist_container(RelKindEntry, lru_node, dlist_pop_head_node(&relkind_ctl->lru)); hash_search(relkind_hash, &victim->rel, HASH_REMOVE, NULL);