Skip to content

Commit 8505e78

Browse files
committed
Bug fix: do not add root slash for pg_wal path
1 parent 4a1ca60 commit 8505e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parsexlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ validate_wal(pgBackup *backup, const char *archivedir,
536536
*/
537537
if (backup->stream)
538538
{
539-
snprintf(backup_xlog_path, sizeof(backup_xlog_path), "/%s/%s/%s/%s",
540-
backup_instance_path, backup_id, DATABASE_DIR, PG_XLOG_DIR);
539+
pgBackupGetPath2(backup, backup_xlog_path, lengthof(backup_xlog_path),
540+
DATABASE_DIR, PG_XLOG_DIR);
541541

542542
validate_backup_wal_from_start_to_stop(backup, backup_xlog_path, tli,
543543
seg_size);

0 commit comments

Comments
 (0)