mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
DISTPG-427: replaced return with goto exit to not break other extensions
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
This commit is contained in:
@@ -3508,11 +3508,11 @@ pgsm_emit_log_hook(ErrorData *edata)
|
|||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
if (IsParallelWorker())
|
if (IsParallelWorker())
|
||||||
return;
|
goto exit;
|
||||||
|
|
||||||
/* Check if PostgreSQL has finished its own bootstraping code. */
|
/* Check if PostgreSQL has finished its own bootstraping code. */
|
||||||
if (MyProc == NULL)
|
if (MyProc == NULL)
|
||||||
return;
|
goto exit;
|
||||||
|
|
||||||
if ((edata->elevel == ERROR || edata->elevel == WARNING || edata->elevel == INFO || edata->elevel == DEBUG1))
|
if ((edata->elevel == ERROR || edata->elevel == WARNING || edata->elevel == INFO || edata->elevel == DEBUG1))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user