Skip to content

Commit

Permalink
Merge pull request #228 from capri1989/DISTPG-427
Browse files Browse the repository at this point in the history
DISTPG-427: replaced return with goto exit to not break other extensions
  • Loading branch information
ibrarahmad authored May 22, 2022
2 parents 741a276 + 5abd8bb commit c94f264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pg_stat_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -3507,11 +3507,11 @@ pgsm_emit_log_hook(ErrorData *edata)
goto exit;

if (IsParallelWorker())
return;
goto exit;

/* Check if PostgreSQL has finished its own bootstraping code. */
if (MyProc == NULL)
return;
goto exit;

if ((edata->elevel == ERROR || edata->elevel == WARNING || edata->elevel == INFO || edata->elevel == DEBUG1))
{
Expand Down

0 comments on commit c94f264

Please sign in to comment.