Update pgxn/neon/relperst_cache.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2025-07-23 16:10:14 +03:00
committed by Konstantin Knizhnik
parent 9030bc8d04
commit 4c49423246

View File

@@ -206,6 +206,7 @@ get_cached_relperst(NRelFileInfo rinfo)
NeonRelPersistenceEntry *entry;
NeonRelPersistence relperst = NEON_RELPERSISTENCE_UNKNOWN;
/* we don't modify the hash table, but need an exclusive lock to manipulate the LRU list */
LWLockAcquire(relperst_hash_lock, LW_EXCLUSIVE);
entry = hash_search(relperst_hash, &rinfo, HASH_FIND, NULL);