mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
After checking that master is alive, is_pgup() should return not keep
checking forever.
This commit is contained in:
@@ -160,7 +160,7 @@ is_pgup(PGconn *conn, int timeout)
|
||||
if (wait_connection_availability(conn, timeout) != 1)
|
||||
goto failed;
|
||||
|
||||
continue;
|
||||
break;
|
||||
|
||||
failed:
|
||||
// we need to retry, because we might just have loose the connection once
|
||||
@@ -170,6 +170,7 @@ failed:
|
||||
twice = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user