From c63fabe0547bda77866c2766ab3049f806b4b351 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 12 May 2020 04:19:45 +0100 Subject: [PATCH] well and it does get all assets, grrr --- OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index b11d5a072a..16903e2288 100755 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs @@ -906,16 +906,14 @@ namespace OpenSim.Region.CoreModules.Asset gatherer.GatherAll(); // windows does not update access time :( - int nofile = 0; foreach(UUID id in gatherer.GatheredUuids.Keys) { - if(!UpdateFileLastAccessTime(GetFileName(id.ToString()))) - nofile++; + string idstr = id.ToString(); + if(!UpdateFileLastAccessTime(GetFileName(idstr))) + m_AssetService.Get(idstr); } - if(gatherer.FailedUUIDs.Count > 0) - m_log.WarnFormat("[FLOTSAM ASSET CACHE] expire files IDs not found as asset:{0}", gatherer.FailedUUIDs.Count + nofile); - int count = gatherer.GatheredUuids.Count - nofile; + int count = gatherer.GatheredUuids.Count; gatherer.GatheredUuids.Clear(); gatherer.FailedUUIDs.Clear(); gatherer.UncertainAssetsUUIDs.Clear();