Skip to content

Commit 687b069

Browse files
committed
Bug fix: Fix for 723c2b0
1 parent 93cedf1 commit 687b069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/parsexlog.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,14 @@ validate_wal(pgBackup *backup, const char *archivedir,
626626
break;
627627
}
628628
/* Check target lsn */
629-
else if (XRecOffIsValid(target_xid) && last_lsn >= target_lsn)
629+
else if (XRecOffIsValid(target_lsn) && last_lsn >= target_lsn)
630630
{
631631
all_wal = true;
632632
break;
633633
}
634634
/* If there are no target xid, target time and target lsn */
635635
else if (!TransactionIdIsValid(target_xid) && target_time == 0 &&
636-
xlogreader->ReadRecPtr == backup->stop_lsn)
636+
!XRecOffIsValid(target_lsn))
637637
{
638638
all_wal = true;
639639
/* We don't stop here. We want to get last_xid and last_time */

0 commit comments

Comments
 (0)