Merge pull request #228 from capri1989/DISTPG-427

DISTPG-427: replaced return with goto exit to not break other extensions
pull/238/head
Ibrar Ahmed 2022-05-22 10:03:01 +05:00 committed by GitHub
commit c94f264911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3507,11 +3507,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))
{ {