mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
Fix some typos and replace the variable Inrecovery with
the function RecoveryInProgress() in the function sql_utils/repmgr_wrapper_funcs.c:last_xlog_replay_timestamp()
This commit is contained in:
2
main.c
2
main.c
@@ -123,7 +123,7 @@ getPrimaryConnection(void)
|
||||
for (i = 0; i < PQntuples(res1); i++)
|
||||
{
|
||||
primaryId = atoi(PQgetvalue(res1, i, 0));
|
||||
strcmp(primaryConninfo, PQgetvalue(res1, i, 2));
|
||||
strcpy(primaryConninfo, PQgetvalue(res1, i, 2));
|
||||
primaryConn = establishDBConnection(primaryConninfo, false);
|
||||
|
||||
res2 = PQexec(primaryConn, "SELECT pg_is_in_recovery()");
|
||||
|
||||
Reference in New Issue
Block a user