DISTPG-427: replaced return with goto exit to not break other extensions
Signed-off-by: Kai Wagner <kai.wagner@percona.com>pull/234/head
parent
da6661fa66
commit
9789af7dfc
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue