After 30 minutes of retry we are supposed to exit, so do that...

This commit is contained in:
Jaime Casanova
2010-11-10 13:41:05 -05:00
parent 3565fe1c3a
commit b4d6966283

View File

@@ -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 */
if (!is_standby(myLocalConn))