1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

fix archivedir path in validate_wal

This commit is contained in:
Anastasia 2017-06-15 15:37:19 +03:00
parent 3ed0666f14
commit b3aa4cf086

View File

@ -325,7 +325,11 @@ validate_wal(pgBackup *backup,
* up to the given recovery target.
* In any case we cannot restore to the point before stop_lsn.
*/
private.archivedir = archivedir;
if (backup->stream)
private.archivedir = backup_xlog_path;
else
private.archivedir = archivedir;
private.tli = tli;
xlogreader = XLogReaderAllocate(&SimpleXLogPageRead, &private);
if (xlogreader == NULL)