mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
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.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user