1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-17 21:18:00 +02:00

Bug fix: do not add root slash for pg_wal path

This commit is contained in:
Arthur Zakirov 2018-11-13 18:15:19 +03:00
parent 4a1ca601af
commit 8505e78c91

View File

@ -536,8 +536,8 @@ validate_wal(pgBackup *backup, const char *archivedir,
*/
if (backup->stream)
{
snprintf(backup_xlog_path, sizeof(backup_xlog_path), "/%s/%s/%s/%s",
backup_instance_path, backup_id, DATABASE_DIR, PG_XLOG_DIR);
pgBackupGetPath2(backup, backup_xlog_path, lengthof(backup_xlog_path),
DATABASE_DIR, PG_XLOG_DIR);
validate_backup_wal_from_start_to_stop(backup, backup_xlog_path, tli,
seg_size);