Skip to content

Commit d1cb537

Browse files
committed
TODO about different exit codes for validation
1 parent 9243a8a commit d1cb537

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/validate.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@ do_validate_all(void)
343343
do_validate_instance();
344344
}
345345

346+
/* TODO: Probably we should have different exit code for every condition
347+
* and they combination:
348+
* 0 - all backups are valid
349+
* 1 - some backups are corrup
350+
* 2 - some backups where skipped due to concurrent locks
351+
* 3 - some backups are corrupt and some are skipped due to concurrent locks
352+
*/
353+
346354
if (skipped_due_to_lock)
347355
elog(WARNING, "Some backups weren't locked and they were skipped");
348356

0 commit comments

Comments
 (0)