Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23abfcb commit 8775a39Copy full SHA for 8775a39
show.c
@@ -68,6 +68,12 @@ do_show(time_t backup_id)
68
int
69
do_retention_show(void)
70
{
71
+ if (retention_redundancy == 0 && retention_window == 0)
72
+ {
73
+ fprintf(stdout, "No retention policy is set\n");
74
+ return 0;
75
+ }
76
+
77
fprintf(stdout, "# retention policy\n");
78
if (retention_redundancy > 0)
79
fprintf(stdout, "REDUNDANCY=%u\n", retention_redundancy);
0 commit comments