1
0
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:
stalkerg 2016-11-24 19:34:10 +03:00
parent fc3f39adf9
commit f63943a01e

View File

@ -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 */