From 3aeceab08143aaa35c20a00a3de510bc360000a6 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Sat, 2 Sep 2017 13:11:03 +0900 Subject: [PATCH] "standby follow": add missing sleep() call when --wait specified --- repmgr-action-standby.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 5865180a..b6f512d8 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -1445,7 +1445,9 @@ do_standby_follow(void) { break; } + sleep(1); } + PQfinish(local_conn); if (PQstatus(primary_conn) != CONNECTION_OK)