From ca21acbff6f05671d41c38de7022fc9c35b1af6b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 14 Jan 2026 23:38:32 +0800 Subject: [PATCH] :bug: Ensure validation files will be updated --- DysonNetwork.Drive/Storage/FileReanalysisService.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DysonNetwork.Drive/Storage/FileReanalysisService.cs b/DysonNetwork.Drive/Storage/FileReanalysisService.cs index 620e8b85..fa0d1e6a 100644 --- a/DysonNetwork.Drive/Storage/FileReanalysisService.cs +++ b/DysonNetwork.Drive/Storage/FileReanalysisService.cs @@ -210,7 +210,7 @@ public class FileReanalysisService( if (!_bucketObjectCache.TryGetValue(dest.Bucket, out var objectNames)) { var listArgs = new ListObjectsArgs().WithBucket(dest.Bucket); - objectNames = new HashSet(); + objectNames = []; await foreach (var item in client.ListObjectsEnumAsync(listArgs)) { if (item.Key.EndsWith(".compressed") || item.Key.EndsWith(".thumbnail")) @@ -252,10 +252,9 @@ public class FileReanalysisService( } } - if (updated) - { - logger.LogInformation("Updated compression/thumbnail status for file {FileId}", file.Id); - } + if (!updated) continue; + logger.LogInformation("Updated compression/thumbnail status for file {FileId}", file.Id); + db.Update(file.Object); } // Save changes for the group