Skip to content

Commit

Permalink
Fix bug introduced in 6969d90
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Knizhnik authored and arssher committed Mar 12, 2024
1 parent 56f32c0 commit 80cef88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/postmaster/postmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -4116,7 +4116,7 @@ SignalSomeChildren(int signal, int target)
* processes.
*/
/* Neon: Also allow walproposer background worker to be treated like a WAL sender, so that it's shut down last */
if ((bp->bkend_type == BACKEND_TYPE_NORMAL || BACKEND_TYPE_BGWORKER) &&
if ((bp->bkend_type == BACKEND_TYPE_NORMAL || bp->bkend_type == BACKEND_TYPE_BGWORKER) &&
IsPostmasterChildWalSender(bp->child_slot))
bp->bkend_type = BACKEND_TYPE_WALSND;

Expand Down Expand Up @@ -5372,7 +5372,7 @@ CountChildren(int target)
* processes.
*/
/* Neon: Also allow walproposer background worker to be treated like a WAL sender, so that it's shut down last */
if ((bp->bkend_type == BACKEND_TYPE_NORMAL || BACKEND_TYPE_BGWORKER) &&
if ((bp->bkend_type == BACKEND_TYPE_NORMAL || bp->bkend_type == BACKEND_TYPE_BGWORKER) &&
IsPostmasterChildWalSender(bp->child_slot))
bp->bkend_type = BACKEND_TYPE_WALSND;

Expand Down

0 comments on commit 80cef88

Please sign in to comment.