Skip to content

Commit f960c67

Browse files
committed
PGPRO-1504: minor changes to comments
1 parent 32b5017 commit f960c67

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/restore.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ do_restore_or_validate(time_t target_backup_id,
160160
&& !dest_backup)
161161
{
162162

163-
/* backup is not ok, but in case of CORRUPT, ORPHAN or DONE revalidation can be done */
163+
/* backup is not ok,
164+
* but in case of CORRUPT, ORPHAN or DONE revalidation can be done,
165+
* in other cases throw an error.
166+
*/
164167
if (current_backup->status != BACKUP_STATUS_OK)
165168
{
166169
if (current_backup->status == BACKUP_STATUS_DONE ||
@@ -262,6 +265,9 @@ do_restore_or_validate(time_t target_backup_id,
262265
corrupted_backup_index = i;
263266
break;
264267
}
268+
/* We do not validate WAL files of intermediate backups
269+
* It`s done to speed up restore
270+
*/
265271
}
266272
/* There is no point in wal validation
267273
* if there is corrupted backup between base_backup and dest_backup

0 commit comments

Comments
 (0)