mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-18 11:22:41 +02:00
validate: interrupt more frequently during file validation
This commit is contained in:
parent
2efce08756
commit
cb9134d067
@ -1592,6 +1592,9 @@ check_file_pages(pgFile *file, XLogRecPtr stop_lsn, uint32 checksum_version,
|
||||
BackupPageHeader header;
|
||||
BlockNumber blknum = 0;
|
||||
|
||||
if (interrupted || thread_interrupted)
|
||||
elog(ERROR, "Interrupted during data file validation");
|
||||
|
||||
/* read BackupPageHeader */
|
||||
read_len = fread(&header, 1, sizeof(header), in);
|
||||
if (read_len != sizeof(header))
|
||||
|
Loading…
x
Reference in New Issue
Block a user