mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
After 30 minutes of retry we are supposed to exit, so do that...
This commit is contained in:
@@ -240,6 +240,11 @@ MonitorExecute(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (PQstatus(primaryConn) != CONNECTION_OK)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "\n%s: We couldn't reconnect for long enough, exiting...\n", progname);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
/* Check if we still are a standby, we could have been promoted */
|
/* Check if we still are a standby, we could have been promoted */
|
||||||
if (!is_standby(myLocalConn))
|
if (!is_standby(myLocalConn))
|
||||||
|
|||||||
Reference in New Issue
Block a user