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,
160
160
&& !dest_backup )
161
161
{
162
162
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
+ */
164
167
if (current_backup -> status != BACKUP_STATUS_OK )
165
168
{
166
169
if (current_backup -> status == BACKUP_STATUS_DONE ||
@@ -262,6 +265,9 @@ do_restore_or_validate(time_t target_backup_id,
262
265
corrupted_backup_index = i ;
263
266
break ;
264
267
}
268
+ /* We do not validate WAL files of intermediate backups
269
+ * It`s done to speed up restore
270
+ */
265
271
}
266
272
/* There is no point in wal validation
267
273
* if there is corrupted backup between base_backup and dest_backup
You can’t perform that action at this time.
0 commit comments