PG-1349 Remove call to LWLockRelease() in PG_CATCH()

It is not safe to release an LWLock in a catch section without
incrementing InterruptHoldoffCount so let's isntead simply not release
the lock here.
pull/518/head
Andreas Karlsson 2025-02-20 17:30:24 +01:00
parent 4ebb3d1f36
commit 9333608c3a
1 changed files with 0 additions and 2 deletions

View File

@ -2018,8 +2018,6 @@ pgsm_store(pgsmEntry *entry)
} }
PG_CATCH(); PG_CATCH();
{ {
pgsm_lock_release(pgsm);
if (DsaPointerIsValid(dsa_query_pointer)) if (DsaPointerIsValid(dsa_query_pointer))
dsa_free(query_dsa_area, dsa_query_pointer); dsa_free(query_dsa_area, dsa_query_pointer);
PG_RE_THROW(); PG_RE_THROW();