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:
postgres
2010-09-14 03:05:28 -05:00
parent 7ec3485811
commit d728ef0eef
3 changed files with 3 additions and 3 deletions

2
main.c
View File

@@ -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()");