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

Commit 82b9d23

Browse files
committed
Merge branch 'master' into metasub_sync
2 parents 2023cd4 + 5925e57 commit 82b9d23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pg_shardman.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ _PG_init()
168168
shardlord_bgw.bgw_flags = BGWORKER_SHMEM_ACCESS |
169169
BGWORKER_BACKEND_DATABASE_CONNECTION;
170170
shardlord_bgw.bgw_start_time = BgWorkerStart_RecoveryFinished;
171-
shardlord_bgw.bgw_restart_time = shardman_cmd_retry_naptime;
172-
/* shardlord_bgw.bgw_restart_time = BGW_NEVER_RESTART; */
171+
/* + 999 to round up */
172+
shardlord_bgw.bgw_restart_time =
173+
(shardman_cmd_retry_naptime + 999) / 1000L;
173174
sprintf(shardlord_bgw.bgw_library_name, "pg_shardman");
174175
sprintf(shardlord_bgw.bgw_function_name, "shardlord_main");
175176
shardlord_bgw.bgw_notify_pid = 0;

0 commit comments

Comments
 (0)