1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-30 09:47:53 +02:00

fix PTRACK backup error caused by wrong sort order

This commit is contained in:
Anastasia 2017-04-25 18:58:29 +03:00
parent 8405a59a53
commit 35471b52ed

View File

@ -341,7 +341,7 @@ catalog_get_last_data_backup(parray *backup_list, TimeLineID tli)
pgBackup *backup = NULL;
/* backup_list is sorted in order of descending ID */
for (i = (int) parray_num(backup_list) - 1; i >= 0; i--)
for (i = 0; i < parray_num(backup_list); i++)
{
backup = (pgBackup *) parray_get(backup_list, (size_t) i);