Skip to content

Commit

Permalink
Merge pull request #48 from tacho/fix-replica-bgw
Browse files Browse the repository at this point in the history
Fix: Background worker not starting on replicas
  • Loading branch information
fmbiete authored Oct 25, 2024
2 parents 408aaa0 + 9c59fdb commit 0ceae2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logtofile.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void _PG_init(void)
/* background worker */
MemSet(&worker, 0, sizeof(BackgroundWorker));
worker.bgw_flags = BGWORKER_SHMEM_ACCESS;
worker.bgw_start_time = BgWorkerStart_RecoveryFinished;
worker.bgw_start_time = BgWorkerStart_ConsistentState;
worker.bgw_restart_time = 1;
worker.bgw_main_arg = Int32GetDatum(0);
worker.bgw_notify_pid = 0;
Expand Down

0 comments on commit 0ceae2e

Please sign in to comment.