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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy