Skip to content

Commit 963eb2e

Browse files
committed
check for interrupt more frequently
1 parent e90714b commit 963eb2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ backup_data_page(backup_files_args *arguments,
242242
header.block = blknum;
243243
header.compressed_size = 0;
244244

245+
/* check for interrupt */
246+
if (interrupted)
247+
elog(ERROR, "Interrupted during backup");
248+
245249
/*
246250
* Read the page and verify its header and checksum.
247251
* Under high write load it's possible that we've read partly

0 commit comments

Comments
 (0)