Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b3aa4cf

Browse files
committed
fix archivedir path in validate_wal
1 parent 3ed0666 commit b3aa4cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

parsexlog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,11 @@ validate_wal(pgBackup *backup,
325325
* up to the given recovery target.
326326
* In any case we cannot restore to the point before stop_lsn.
327327
*/
328-
private.archivedir = archivedir;
328+
if (backup->stream)
329+
private.archivedir = backup_xlog_path;
330+
else
331+
private.archivedir = archivedir;
332+
329333
private.tli = tli;
330334
xlogreader = XLogReaderAllocate(&SimpleXLogPageRead, &private);
331335
if (xlogreader == NULL)

0 commit comments

Comments
 (0)