From 48df8869e8663b67b565bfc032a64b1e48edd1f5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 12 May 2020 03:03:31 +0100 Subject: [PATCH] duuhh windows does not update lastaccesstime --- .../Region/CoreModules/Asset/FlotsamAssetCache.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index f5dfeb9156..b11d5a072a 100755 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs @@ -904,10 +904,18 @@ namespace OpenSim.Region.CoreModules.Asset } gatherer.GatherAll(); - if(gatherer.FailedUUIDs.Count > 0) - m_log.WarnFormat("[FLOTSAM ASSET CACHE] expire files IDs not found as asset:{0}", gatherer.FailedUUIDs.Count); - int count = gatherer.GatheredUuids.Count; + // windows does not update access time :( + int nofile = 0; + foreach(UUID id in gatherer.GatheredUuids.Keys) + { + if(!UpdateFileLastAccessTime(GetFileName(id.ToString()))) + nofile++; + } + 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; gatherer.GatheredUuids.Clear(); gatherer.FailedUUIDs.Clear(); gatherer.UncertainAssetsUUIDs.Clear();