Hack to get passwords in recovery.conf

Signed-off-by: Dan Farina <drfarina@acm.org>
This commit is contained in:
Dan Farina
2010-12-22 19:43:32 -08:00
parent 29c39c21f6
commit f969dca821
4 changed files with 55 additions and 14 deletions

View File

@@ -168,7 +168,7 @@ main(int argc, char **argv)
{
/* I need the id of the primary as well as a connection to it */
primaryConn = getMasterConnection(myLocalConn, myLocalId,
myClusterName, &primaryId);
myClusterName, &primaryId, NULL);
if (primaryConn == NULL)
exit(1);
}
@@ -240,7 +240,7 @@ MonitorExecute(void)
connection_retries++)
{
primaryConn = getMasterConnection(myLocalConn, myLocalId,
myClusterName, &primaryId);
myClusterName, &primaryId, NULL);
if (PQstatus(primaryConn) == CONNECTION_OK)
{
/* Connected, we can continue the process so break the loop */