1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

[Issue #103] minor fix

This commit is contained in:
Grigory Smolkin 2019-08-06 00:00:34 +03:00
parent 4783e61996
commit db901a7adf

View File

@ -633,7 +633,7 @@ do_retention_wal(void)
/* Save LSN and Timeline to remove unnecessary WAL segments */
for (i = (int) parray_num(backup_list) - 1; i >= 0; i--)
{
pgBackup *backup = (pgBackup *) parray_get(backup_list, parray_num(backup_list) -1);
pgBackup *backup = (pgBackup *) parray_get(backup_list, i);
/* Get LSN and TLI of the oldest backup with valid start_lsn and tli */
if (backup->tli > 0 && !XLogRecPtrIsInvalid(backup->start_lsn))