repmgr: clarify intent behind --wait-sync timeout processing

This commit is contained in:
Ian Barwick
2018-07-05 10:09:04 +09:00
parent ebf2a3a7cc
commit 29de052dd8

View File

@@ -1709,9 +1709,10 @@ do_standby_register(void)
termPQExpBuffer(&details);
/*
* if --wait-sync option set, wait for the records to synchronise
* If --wait-sync option set, wait for the records to synchronise
* (unless 0 seconds provided, which disables it, which is the same as
* not providing the option)
* not providing the option). The default value is -1, which means
* no timeout.
*/
if (PQstatus(conn) == CONNECTION_OK &&