You've already forked pg_probackup
							
							
				mirror of
				https://github.com/postgrespro/pg_probackup.git
				synced 2025-10-31 00:17:52 +02:00 
			
		
		
		
	fix PTRACK backup error caused by wrong sort order
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user