1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-16 07:14:15 +02:00

PGPRO-1504: minor changes to comments

This commit is contained in:
Grigory Smolkin
2018-03-15 13:43:11 +03:00
parent 32b5017d38
commit f960c67db4

View File

@ -160,7 +160,10 @@ do_restore_or_validate(time_t target_backup_id,
&& !dest_backup)
{
/* backup is not ok, but in case of CORRUPT, ORPHAN or DONE revalidation can be done */
/* backup is not ok,
* but in case of CORRUPT, ORPHAN or DONE revalidation can be done,
* in other cases throw an error.
*/
if (current_backup->status != BACKUP_STATUS_OK)
{
if (current_backup->status == BACKUP_STATUS_DONE ||
@ -262,6 +265,9 @@ do_restore_or_validate(time_t target_backup_id,
corrupted_backup_index = i;
break;
}
/* We do not validate WAL files of intermediate backups
* It`s done to speed up restore
*/
}
/* There is no point in wal validation
* if there is corrupted backup between base_backup and dest_backup