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.
2 parents 2023cd4 + 5925e57 commit 82b9d23Copy full SHA for 82b9d23
src/pg_shardman.c
@@ -168,8 +168,9 @@ _PG_init()
168
shardlord_bgw.bgw_flags = BGWORKER_SHMEM_ACCESS |
169
BGWORKER_BACKEND_DATABASE_CONNECTION;
170
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; */
+ /* + 999 to round up */
+ shardlord_bgw.bgw_restart_time =
173
+ (shardman_cmd_retry_naptime + 999) / 1000L;
174
sprintf(shardlord_bgw.bgw_library_name, "pg_shardman");
175
sprintf(shardlord_bgw.bgw_function_name, "shardlord_main");
176
shardlord_bgw.bgw_notify_pid = 0;
0 commit comments