mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
Update pgxn/neon/relperst_cache.c
Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
committed by
Konstantin Knizhnik
parent
9030bc8d04
commit
4c49423246
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user