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

Commit 781fd65

Browse files
committed
2 parents e0762a9 + 5925e57 commit 781fd65

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
@@ -167,8 +167,9 @@ _PG_init()
167167
shardlord_bgw.bgw_flags = BGWORKER_SHMEM_ACCESS |
168168
BGWORKER_BACKEND_DATABASE_CONNECTION;
169169
shardlord_bgw.bgw_start_time = BgWorkerStart_RecoveryFinished;
170-
shardlord_bgw.bgw_restart_time = shardman_cmd_retry_naptime;
171-
/* shardlord_bgw.bgw_restart_time = BGW_NEVER_RESTART; */
170+
/* + 999 to round up */
171+
shardlord_bgw.bgw_restart_time =
172+
(shardman_cmd_retry_naptime + 999) / 1000L;
172173
sprintf(shardlord_bgw.bgw_library_name, "pg_shardman");
173174
sprintf(shardlord_bgw.bgw_function_name, "shardlord_main");
174175
shardlord_bgw.bgw_notify_pid = 0;

0 commit comments

Comments
 (0)