Break out error codes, cleanup header files and HISTORY

This commit is contained in:
Greg Smith
2011-02-15 00:43:36 -05:00
parent f6618a01c7
commit 45022debc6
6 changed files with 81 additions and 33 deletions

View File

@@ -1025,19 +1025,15 @@ stop_backup:
}
last_wal_segment = PQgetvalue(res, 0, 0);
if (runtime_options.verbose)
{
printf(
_("%s requires primary to keep WAL files %s until at least %s\n"),
progname, first_wal_segment, last_wal_segment);
log_info(_("%s requires primary to keep WAL files %s until at least %s\n"),
progname, first_wal_segment, last_wal_segment);
/*
* Only free the first_wal_segment since it was copied out of the
* pqresult.
*/
free(first_wal_segment);
first_wal_segment = NULL;
}
/*
* Only free the first_wal_segment since it was copied out of the
* pqresult.
*/
free(first_wal_segment);
first_wal_segment = NULL;
PQclear(res);
PQfinish(conn);
@@ -1046,9 +1042,6 @@ stop_backup:
if (r != 0)
exit(ERR_BAD_RSYNC);
log_info(_("%s requires primary to keep WAL files %s until at least %s\n"),
progname, first_wal_segment, last_wal_segment);
/*
* We need to create the pg_xlog sub directory too, I'm reusing a variable
* here.