1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00

Fix one-off error when waiting for necessary segment to be archived

The .ready flag file of the segment forcibly switched to when stopping the
backup needs to be tracked, and not the next one.
This commit is contained in:
Michael Paquier 2016-01-15 13:37:20 +09:00
parent 04c4c7b865
commit a5a76c14c5

View File

@ -634,7 +634,7 @@ wait_for_archive(pgBackup *backup, const char *sql)
/* As well as WAL file name */
XLByteToSeg(lsn, targetSegNo);
XLogFileName(file_name, tli, targetSegNo + 1);
XLogFileName(file_name, tli, targetSegNo);
snprintf(ready_path, lengthof(ready_path),
"%s/pg_xlog/archive_status/%s.ready", pgdata,