1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00

fix retention show message, when no policy is set

This commit is contained in:
Anastasia 2017-02-15 19:46:40 +03:00
parent 23abfcb5ce
commit 8775a399cb

6
show.c
View File

@ -68,6 +68,12 @@ do_show(time_t backup_id)
int
do_retention_show(void)
{
if (retention_redundancy == 0 && retention_window == 0)
{
fprintf(stdout, "No retention policy is set\n");
return 0;
}
fprintf(stdout, "# retention policy\n");
if (retention_redundancy > 0)
fprintf(stdout, "REDUNDANCY=%u\n", retention_redundancy);