mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Break out error codes, cleanup header files and HISTORY
This commit is contained in:
23
repmgr.c
23
repmgr.c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user