mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-04-16 12:18:38 +02:00
TODO about different exit codes for validation
This commit is contained in:
parent
9243a8a399
commit
d1cb537a90
@ -343,6 +343,14 @@ do_validate_all(void)
|
|||||||
do_validate_instance();
|
do_validate_instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Probably we should have different exit code for every condition
|
||||||
|
* and they combination:
|
||||||
|
* 0 - all backups are valid
|
||||||
|
* 1 - some backups are corrup
|
||||||
|
* 2 - some backups where skipped due to concurrent locks
|
||||||
|
* 3 - some backups are corrupt and some are skipped due to concurrent locks
|
||||||
|
*/
|
||||||
|
|
||||||
if (skipped_due_to_lock)
|
if (skipped_due_to_lock)
|
||||||
elog(WARNING, "Some backups weren't locked and they were skipped");
|
elog(WARNING, "Some backups weren't locked and they were skipped");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user