mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
repmgr: standby register --wait-sync=0 can loop infinitely
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -2296,7 +2296,9 @@ do_standby_register(void)
|
||||
|
||||
/* if --wait-sync option set, wait for the records to synchronise */
|
||||
|
||||
if (PQstatus(conn) == CONNECTION_OK && runtime_options.wait_register_sync)
|
||||
if (PQstatus(conn) == CONNECTION_OK &&
|
||||
runtime_options.wait_register_sync == true &&
|
||||
runtime_options.wait_register_sync_seconds > 0)
|
||||
{
|
||||
bool sync_ok = false;
|
||||
int timer = 0;
|
||||
|
||||
Reference in New Issue
Block a user