Skip to content

Commit c2d32da

Browse files
committed
[Issue #124] report correct backup status if corruption is detected during validation. Reported By Yuri Kurenkov
1 parent 4cf86c5 commit c2d32da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/validate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ pgBackupValidate(pgBackup *backup, pgRestoreParams *params)
166166
parray_free(files);
167167

168168
/* Update backup status */
169+
if (corrupted)
170+
backup->status = BACKUP_STATUS_CORRUPT;
169171
write_backup_status(backup, corrupted ? BACKUP_STATUS_CORRUPT :
170172
BACKUP_STATUS_OK, instance_name);
171173

0 commit comments

Comments
 (0)