mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-24 08:52:38 +02:00
Fix validate command.
This commit is contained in:
parent
fc3f39adf9
commit
f63943a01e
@ -49,11 +49,18 @@ do_validate(time_t backup_id)
|
||||
}
|
||||
|
||||
/* Validate completed backups only. */
|
||||
if (backup->status != BACKUP_STATUS_DONE)
|
||||
if (backup_id == 0 && backup->status != BACKUP_STATUS_DONE)
|
||||
continue;
|
||||
|
||||
if (backup_id != 0 && backup->start_time == backup_id)
|
||||
{
|
||||
pgBackupValidate(backup, false, false);
|
||||
break;
|
||||
}
|
||||
else
|
||||
/* validate with CRC value and update status to OK */
|
||||
pgBackupValidate(backup, false, false);
|
||||
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
|
Loading…
Reference in New Issue
Block a user