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:
parent
3ed0666f14
commit
b3aa4cf086
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user