Rework garbage collector logic
New garbage collector do not move disks unsufficient. It marks deleted disks in modely only. Sort disk by creation time from model data instead of filesystem data.
Requires: storagedriver's new_gc branch
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
-
75 75 raise WorkerNotFound() 76 76 77 77 def get_deletable_disks(self): 78 return [disk.filename for disk in 79 self.disk_set.filter( 80 destroyed__isnull=False) if disk.is_deletable] 78 deletables = [disk for disk in self.disk_set.filter( 79 destroyed__isnull=False) if disk.is_deletable] 80 deletables = sorted(deletables, key=lambda disk: disk.destroyed) 81 82 return [disk.filename for disk in deletables] -
Owner
values_list("filename", flat=True)
-