1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-29 22:28:02 +02:00

Sort last processing queue on backup from standby.

The last queue was not being sorted when a primary queue was added first.

This did not affect the backup or integrity but could lead to slightly lower performance since large files were not always copied first.
This commit is contained in:
David Steele
2020-01-26 12:29:53 -07:00
parent 0444d37414
commit 9b47ff2746

View File

@@ -1381,8 +1381,8 @@ backupProcessQueue(Manifest *manifest, List **queueList)
THROW(FileMissingError, "no files have changed since the last backup - this seems unlikely");
// Sort the queues
for (unsigned int targetIdx = 0; targetIdx < strLstSize(targetList); targetIdx++)
lstSort(*(List **)lstGet(*queueList, targetIdx), sortOrderDesc);
for (unsigned int queueIdx = 0; queueIdx < lstSize(*queueList); queueIdx++)
lstSort(*(List **)lstGet(*queueList, queueIdx), sortOrderDesc);
// Move process queues to prior context
lstMove(*queueList, memContextPrior());