Skip to content

Commit 4b58d2e

Browse files
committed
fix validate to target in the future
1 parent e0596ef commit 4b58d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parsexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ validate_wal(pgBackup *backup,
319319
* If recovery target is provided check that we can restore backup to a
320320
* recoverty target time or xid.
321321
*/
322-
if (!TransactionIdIsValid(target_xid) || target_time == 0)
322+
if (!TransactionIdIsValid(target_xid) && target_time == 0)
323323
{
324324
/* Recoverty target is not given so exit */
325325
elog(INFO, "backup validation completed successfully");

0 commit comments

Comments
 (0)