Skip to content

Commit d153c26

Browse files
committed
PGPRO-1159: Try reread partly read block
1 parent 6878de1 commit d153c26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/data.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ backup_data_page(pgFile *file, XLogRecPtr prev_backup_start_lsn,
158158
file->path, blknum);
159159
return;
160160
}
161+
else if (try_checksum)
162+
{
163+
elog(LOG, "File: %s, block %u, expected block size %lu, but read %d, try again",
164+
file->path, blknum, read_len, BLCKSZ);
165+
usleep(100);
166+
continue;
167+
}
161168

162169
elog(ERROR, "File: %s, invalid block size of block %u : %lu",
163170
file->path, blknum, read_len);

0 commit comments

Comments
 (0)