File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments