From: Alvaro Herrera Date: Thu, 20 Feb 2014 17:46:40 +0000 (-0300) Subject: bdr: Initialize bgw_notify_pid to 0 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=babffe19465de72356c0fcc74fe2a9fe03726dbd;p=users%2Fandresfreund%2Fpostgres.git bdr: Initialize bgw_notify_pid to 0 Failure to do this resulted in a bgworker that would not run in some cases. --- diff --git a/contrib/bdr/bdr.c b/contrib/bdr/bdr.c index c990dabc1c..94c5afc8b3 100644 --- a/contrib/bdr/bdr.c +++ b/contrib/bdr/bdr.c @@ -663,6 +663,7 @@ _PG_init(void) apply_worker.bgw_start_time = BgWorkerStart_RecoveryFinished; apply_worker.bgw_main = bdr_apply_main; apply_worker.bgw_restart_time = 5; + apply_worker.bgw_notify_pid = 0; /* Common sequence worker values */ sequencer_worker.bgw_flags = BGWORKER_SHMEM_ACCESS | @@ -670,6 +671,7 @@ _PG_init(void) sequencer_worker.bgw_start_time = BgWorkerStart_RecoveryFinished; sequencer_worker.bgw_main = bdr_sequencer_main; sequencer_worker.bgw_restart_time = 5; + sequencer_worker.bgw_notify_pid = 0; foreach(c, cons) {