From d1cb537a9051ccea63728ec14bb63df35dea7ef3 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Fri, 22 Feb 2019 19:38:07 +0300 Subject: [PATCH] TODO about different exit codes for validation --- src/validate.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/validate.c b/src/validate.c index 7878dec9..031ead15 100644 --- a/src/validate.c +++ b/src/validate.c @@ -343,6 +343,14 @@ do_validate_all(void) 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) elog(WARNING, "Some backups weren't locked and they were skipped");