tape: improve MediaPool allocation by sorting tapes by ctime and label_text

This commit is contained in:
Dietmar Maurer
2021-03-09 08:33:21 +01:00
parent 1825c1a9b7
commit af76234112
3 changed files with 26 additions and 4 deletions

View File

@ -276,7 +276,7 @@ impl Inventory {
continue; // belong to another pool
}
if set.uuid.as_ref() == [0u8;16] { // should we do this??
if set.uuid.as_ref() == [0u8;16] {
list.push(MediaId {
label: entry.id.label.clone(),
media_set_label: None,