1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-24 11:46:31 +02:00

check for interrupt more frequently

This commit is contained in:
Grigory Smolkin 2018-07-11 10:29:36 +03:00
parent e90714bcd4
commit 963eb2e2c6

View File

@ -242,6 +242,10 @@ backup_data_page(backup_files_args *arguments,
header.block = blknum;
header.compressed_size = 0;
/* check for interrupt */
if (interrupted)
elog(ERROR, "Interrupted during backup");
/*
* Read the page and verify its header and checksum.
* Under high write load it's possible that we've read partly