From c36bfdc60f62b53e87de0ed3dbbd8e63c8a8f007 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 4 Dec 2014 01:46:00 +0000 Subject: Don't worry about checking FlotsamAssetCache.m_CurrentlyWriting when updating access time. The majority of updates won't be for anything currently writing and any sharing exception from an actual clash can be caught and ignored anyway. --- OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index fe9a17d..bc5b39b 100644 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs @@ -256,16 +256,9 @@ namespace OpenSim.Region.CoreModules.Asset // If the file is already cached, don't cache it, just touch it so access time is updated if (File.Exists(filename)) { - // We don't really want to know about sharing - // violations here. If the file is locked, then - // the other thread has updated the time for us. try { - lock (m_CurrentlyWriting) - { - if (!m_CurrentlyWriting.Contains(filename)) - File.SetLastAccessTime(filename, DateTime.Now); - } + File.SetLastAccessTime(filename, DateTime.Now); } catch { -- cgit v1.1