mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 22:59:54 -04:00
worker_spi: Initialize bgw_notify_pid in all cases.
Commit 090d0f2050 added new code showing
how it can be useful to set bgw_notify_pid to a non-zero value, but it
failed to make sure that the existing call to RegisterBackgroundWorker
initialized the new field at all.
Report and patch by Shigeru Hanada.
This commit is contained in:
parent
9d7ded0f42
commit
616afee14d
1 changed files with 1 additions and 0 deletions
|
|
@ -348,6 +348,7 @@ _PG_init(void)
|
|||
worker.bgw_start_time = BgWorkerStart_RecoveryFinished;
|
||||
worker.bgw_restart_time = BGW_NEVER_RESTART;
|
||||
worker.bgw_main = worker_spi_main;
|
||||
worker.bgw_notify_pid = 0;
|
||||
|
||||
/*
|
||||
* Now fill in worker-specific data, and do the actual registrations.
|
||||
|
|
|
|||
Loading…
Reference in a new issue