Avoid to show what segments are needed for this backup if the rsync failed

This commit is contained in:
Jaime Casanova
2012-04-11 10:34:38 -05:00
parent 91601204b5
commit 78aea00a6d

View File

@@ -1066,8 +1066,10 @@ stop_backup:
} }
last_wal_segment = PQgetvalue(res, 0, 0); last_wal_segment = PQgetvalue(res, 0, 0);
log_info(_("%s requires primary to keep WAL files %s until at least %s\n"), /* don't show this message if rsync failed */
progname, first_wal_segment, last_wal_segment); if (r == 0)
log_info(_("%s requires primary to keep WAL files %s until at least %s\n"),
progname, first_wal_segment, last_wal_segment);
/* Finished with the database connection now */ /* Finished with the database connection now */
PQclear(res); PQclear(res);