You've already forked pgbackrest
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user