We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72be591 commit 5925e57Copy full SHA for 5925e57
src/pg_shardman.c
@@ -167,8 +167,9 @@ _PG_init()
167
shardlord_bgw.bgw_flags = BGWORKER_SHMEM_ACCESS |
168
BGWORKER_BACKEND_DATABASE_CONNECTION;
169
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; */
+ /* + 999 to round up */
+ shardlord_bgw.bgw_restart_time =
172
+ (shardman_cmd_retry_naptime + 999) / 1000L;
173
sprintf(shardlord_bgw.bgw_library_name, "pg_shardman");
174
sprintf(shardlord_bgw.bgw_function_name, "shardlord_main");
175
shardlord_bgw.bgw_notify_pid = 0;
0 commit comments