[backend/drive] Fix handling of failed files in object storage migrator
This fixes an edge case that could cause it to enter an infinite loop.
This commit is contained in:
parent
c7bacc2856
commit
9f3bbe6c08
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ public class StorageMaintenanceService(
|
|||
{
|
||||
var keys = await db.DriveFiles
|
||||
.Where(p => p.StoredInternal && !p.IsLink)
|
||||
.Where(p => !failed.Contains(p.Id))
|
||||
.GroupBy(p => p.AccessKey)
|
||||
.Select(p => p.Key)
|
||||
.OrderBy(p => p)
|
||||
|
|
Loading…
Add table
Reference in a new issue