Skip to content

Commit 9333608

Browse files
committed
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.
1 parent 4ebb3d1 commit 9333608

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pg_stat_monitor.c

-2
Original file line numberDiff line numberDiff line change
@@ -2018,8 +2018,6 @@ pgsm_store(pgsmEntry *entry)
20182018
}
20192019
PG_CATCH();
20202020
{
2021-
pgsm_lock_release(pgsm);
2022-
20232021
if (DsaPointerIsValid(dsa_query_pointer))
20242022
dsa_free(query_dsa_area, dsa_query_pointer);
20252023
PG_RE_THROW();

0 commit comments

Comments
 (0)