Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b1028f0

Browse files
committed
do not restart monitor, as we will duplicate bgworkers
1 parent 70c0a65 commit b1028f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ MtmMonitorStart(Oid db_id, Oid user_id)
11771177
MemSet(&worker, 0, sizeof(BackgroundWorker));
11781178
worker.bgw_flags = BGWORKER_SHMEM_ACCESS | BGWORKER_BACKEND_DATABASE_CONNECTION;
11791179
worker.bgw_start_time = BgWorkerStart_ConsistentState;
1180-
worker.bgw_restart_time = 1;
1180+
worker.bgw_restart_time = BGW_NEVER_RESTART; /* or we can start several receivers */
11811181
worker.bgw_main_arg = Int32GetDatum(0);
11821182

11831183
memcpy(worker.bgw_extra, &db_id, sizeof(Oid));

0 commit comments

Comments
 (0)