Skip to content

Commit 1cf7150

Browse files
committed
Fix 64 bit XID again and one warning.
1 parent 20f055f commit 1cf7150

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

backup.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,18 +1619,20 @@ StreamLog(void *arg)
16191619
starttli);
16201620

16211621
#if PG_VERSION_NUM >= 90600
1622-
StreamCtl ctl;
1623-
ctl.startpos = startpos;
1624-
ctl.timeline = starttli;
1625-
ctl.sysidentifier = NULL;
1626-
ctl.basedir = basedir;
1627-
ctl.stream_stop = stop_streaming;
1628-
ctl.standby_message_timeout = standby_message_timeout;
1629-
ctl.partial_suffix = NULL;
1630-
ctl.synchronous = false;
1631-
ctl.mark_done = false;
1632-
if(ReceiveXlogStream(conn, &ctl) == false)
1633-
elog(ERROR, "Problem in recivexlog");
1622+
{
1623+
StreamCtl ctl;
1624+
ctl.startpos = startpos;
1625+
ctl.timeline = starttli;
1626+
ctl.sysidentifier = NULL;
1627+
ctl.basedir = basedir;
1628+
ctl.stream_stop = stop_streaming;
1629+
ctl.standby_message_timeout = standby_message_timeout;
1630+
ctl.partial_suffix = NULL;
1631+
ctl.synchronous = false;
1632+
ctl.mark_done = false;
1633+
if(ReceiveXlogStream(conn, &ctl) == false)
1634+
elog(ERROR, "Problem in recivexlog");
1635+
}
16341636
#else
16351637
if(ReceiveXlogStream(conn, startpos, starttli, NULL, basedir,
16361638
stop_streaming, standby_message_timeout, NULL,

catalog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ pgBackupWriteResultSection(FILE *out, pgBackup *backup)
278278
time2iso(timestamp, lengthof(timestamp), backup->end_time);
279279
fprintf(out, "END_TIME='%s'\n", timestamp);
280280
}
281-
fprintf(out, "RECOVERY_XID=%u\n", backup->recovery_xid);
281+
fprintf(out, "RECOVERY_XID=" XID_FMT "\n", backup->recovery_xid);
282282
if (backup->recovery_time > 0)
283283
{
284284
time2iso(timestamp, lengthof(timestamp), backup->recovery_time);

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