mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-16 15:18:40 +02:00
Fix 64 bit XID again and one warning.
This commit is contained in:
parent
20f055f309
commit
1cf715051e
26
backup.c
26
backup.c
@ -1619,18 +1619,20 @@ StreamLog(void *arg)
|
||||
starttli);
|
||||
|
||||
#if PG_VERSION_NUM >= 90600
|
||||
StreamCtl ctl;
|
||||
ctl.startpos = startpos;
|
||||
ctl.timeline = starttli;
|
||||
ctl.sysidentifier = NULL;
|
||||
ctl.basedir = basedir;
|
||||
ctl.stream_stop = stop_streaming;
|
||||
ctl.standby_message_timeout = standby_message_timeout;
|
||||
ctl.partial_suffix = NULL;
|
||||
ctl.synchronous = false;
|
||||
ctl.mark_done = false;
|
||||
if(ReceiveXlogStream(conn, &ctl) == false)
|
||||
elog(ERROR, "Problem in recivexlog");
|
||||
{
|
||||
StreamCtl ctl;
|
||||
ctl.startpos = startpos;
|
||||
ctl.timeline = starttli;
|
||||
ctl.sysidentifier = NULL;
|
||||
ctl.basedir = basedir;
|
||||
ctl.stream_stop = stop_streaming;
|
||||
ctl.standby_message_timeout = standby_message_timeout;
|
||||
ctl.partial_suffix = NULL;
|
||||
ctl.synchronous = false;
|
||||
ctl.mark_done = false;
|
||||
if(ReceiveXlogStream(conn, &ctl) == false)
|
||||
elog(ERROR, "Problem in recivexlog");
|
||||
}
|
||||
#else
|
||||
if(ReceiveXlogStream(conn, startpos, starttli, NULL, basedir,
|
||||
stop_streaming, standby_message_timeout, NULL,
|
||||
|
@ -278,7 +278,7 @@ pgBackupWriteResultSection(FILE *out, pgBackup *backup)
|
||||
time2iso(timestamp, lengthof(timestamp), backup->end_time);
|
||||
fprintf(out, "END_TIME='%s'\n", timestamp);
|
||||
}
|
||||
fprintf(out, "RECOVERY_XID=%u\n", backup->recovery_xid);
|
||||
fprintf(out, "RECOVERY_XID=" XID_FMT "\n", backup->recovery_xid);
|
||||
if (backup->recovery_time > 0)
|
||||
{
|
||||
time2iso(timestamp, lengthof(timestamp), backup->recovery_time);
|
||||
|
Loading…
x
Reference in New Issue
Block a user