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.
@@ -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());
