1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-12 11:45:24 +02:00

Bug fix: Fix for 723c2b01a

This commit is contained in:
Arthur Zakirov 2018-12-29 17:13:34 +03:00
parent 93cedf1747
commit 687b069f09

View File

@ -626,14 +626,14 @@ validate_wal(pgBackup *backup, const char *archivedir,
break; break;
} }
/* Check target lsn */ /* Check target lsn */
else if (XRecOffIsValid(target_xid) && last_lsn >= target_lsn) else if (XRecOffIsValid(target_lsn) && last_lsn >= target_lsn)
{ {
all_wal = true; all_wal = true;
break; break;
} }
/* If there are no target xid, target time and target lsn */ /* If there are no target xid, target time and target lsn */
else if (!TransactionIdIsValid(target_xid) && target_time == 0 && else if (!TransactionIdIsValid(target_xid) && target_time == 0 &&
xlogreader->ReadRecPtr == backup->stop_lsn) !XRecOffIsValid(target_lsn))
{ {
all_wal = true; all_wal = true;
/* We don't stop here. We want to get last_xid and last_time */ /* We don't stop here. We want to get last_xid and last_time */