From cb9134d067b9616bdac4c126f8eff2b5d5d1b172 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 18 Apr 2019 01:51:38 +0300 Subject: [PATCH] validate: interrupt more frequently during file validation --- src/data.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data.c b/src/data.c index 995e27a8..b70c4dd9 100644 --- a/src/data.c +++ b/src/data.c @@ -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))