mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-09 14:33:17 +02:00
[Issue #124] report correct backup status if corruption is detected during validation. Reported By Yuri Kurenkov
This commit is contained in:
parent
4cf86c50c0
commit
c2d32da0a0
@ -166,6 +166,8 @@ pgBackupValidate(pgBackup *backup, pgRestoreParams *params)
|
||||
parray_free(files);
|
||||
|
||||
/* Update backup status */
|
||||
if (corrupted)
|
||||
backup->status = BACKUP_STATUS_CORRUPT;
|
||||
write_backup_status(backup, corrupted ? BACKUP_STATUS_CORRUPT :
|
||||
BACKUP_STATUS_OK, instance_name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user