1
0
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:
Grigory Smolkin 2019-04-18 01:51:38 +03:00
parent 2efce08756
commit cb9134d067

View File

@ -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))