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:
parent
23abfcb5ce
commit
8775a399cb
6
show.c
6
show.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user