mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Hack to get passwords in recovery.conf
Signed-off-by: Dan Farina <drfarina@acm.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user