Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 19a9dd9

Browse files
committed
Show realy last know xid in wal validate.
1 parent 1874b89 commit 19a9dd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parsexlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ validate_wal(pgBackup *backup,
152152
}
153153

154154
timestamp_record = getRecordTimestamp(xlogreader, &last_time);
155-
last_xid = XLogRecGetXid(xlogreader);
155+
if (XLogRecGetXid(xlogreader) != InvalidTransactionId)
156+
last_xid = XLogRecGetXid(xlogreader);
156157
if (recovery_target_xid != InvalidTransactionId && recovery_target_xid == last_xid)
157158
break;
158159

0 commit comments

Comments
 (0)