"standby follow": add missing sleep() call when --wait specified

This commit is contained in:
Ian Barwick
2017-09-02 13:11:03 +09:00
parent 72e037d55b
commit 3aeceab081

View File

@@ -1445,7 +1445,9 @@ do_standby_follow(void)
{ {
break; break;
} }
sleep(1);
} }
PQfinish(local_conn); PQfinish(local_conn);
if (PQstatus(primary_conn) != CONNECTION_OK) if (PQstatus(primary_conn) != CONNECTION_OK)