mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-13 11:53:59 +02:00
Retry remote pull using ptrack
This commit is contained in:
parent
6f42781d58
commit
7e60de38db
@ -593,6 +593,8 @@ backup_data_file(backup_files_arg* arguments,
|
|||||||
int rc = fio_send_pages(in, out, file,
|
int rc = fio_send_pages(in, out, file,
|
||||||
backup_mode == BACKUP_MODE_DIFF_DELTA && file->exists_in_prev ? prev_backup_start_lsn : InvalidXLogRecPtr,
|
backup_mode == BACKUP_MODE_DIFF_DELTA && file->exists_in_prev ? prev_backup_start_lsn : InvalidXLogRecPtr,
|
||||||
&n_blocks_skipped, calg, clevel);
|
&n_blocks_skipped, calg, clevel);
|
||||||
|
if (rc == PAGE_CHECKSUM_MISMATCH && is_ptrack_support)
|
||||||
|
goto RetryUsingPtrack;
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
elog(ERROR, "Failed to read file %s: %s",
|
elog(ERROR, "Failed to read file %s: %s",
|
||||||
file->path, rc == PAGE_CHECKSUM_MISMATCH ? "data file checksum mismatch" : strerror(-rc));
|
file->path, rc == PAGE_CHECKSUM_MISMATCH ? "data file checksum mismatch" : strerror(-rc));
|
||||||
@ -600,6 +602,7 @@ backup_data_file(backup_files_arg* arguments,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
RetryUsingPtrack:
|
||||||
for (blknum = 0; blknum < nblocks; blknum++)
|
for (blknum = 0; blknum < nblocks; blknum++)
|
||||||
{
|
{
|
||||||
page_state = prepare_page(arguments, file, prev_backup_start_lsn,
|
page_state = prepare_page(arguments, file, prev_backup_start_lsn,
|
||||||
|
Loading…
Reference in New Issue
Block a user