aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-11-30 09:22:47 +0000
committerUbitUmarov2016-11-30 09:22:47 +0000
commit2020cafc308a99555412324a4de33958593a255a (patch)
tree28034570703fbbad04d68d081868f604338a887f
parent fix the FileCleanupTimer coment (diff)
downloadopensim-SC-2020cafc308a99555412324a4de33958593a255a.zip
opensim-SC-2020cafc308a99555412324a4de33958593a255a.tar.gz
opensim-SC-2020cafc308a99555412324a4de33958593a255a.tar.bz2
opensim-SC-2020cafc308a99555412324a4de33958593a255a.tar.xz
fix null ref on m_CacheCleanTimer control, add a gc.collect on manual floatsam fcache assets comand
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index 025d3ce..9413598 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -224,7 +224,7 @@ namespace OpenSim.Region.CoreModules.Asset
224 m_Scenes.Remove(scene); 224 m_Scenes.Remove(scene);
225 lock(timerLock) 225 lock(timerLock)
226 { 226 {
227 if(m_Scenes.Count <= 0) 227 if(m_Running && m_Scenes.Count <= 0)
228 { 228 {
229 m_Running = false; 229 m_Running = false;
230 m_CacheCleanTimer.Stop(); 230 m_CacheCleanTimer.Stop();
@@ -250,8 +250,8 @@ namespace OpenSim.Region.CoreModules.Asset
250 m_CacheCleanTimer.AutoReset = false; 250 m_CacheCleanTimer.AutoReset = false;
251 m_CacheCleanTimer.Elapsed += CleanupExpiredFiles; 251 m_CacheCleanTimer.Elapsed += CleanupExpiredFiles;
252 m_CacheCleanTimer.Start(); 252 m_CacheCleanTimer.Start();
253 m_Running = true;
253 } 254 }
254 m_Running = true;
255 } 255 }
256 } 256 }
257 } 257 }
@@ -834,6 +834,7 @@ namespace OpenSim.Region.CoreModules.Asset
834 if (File.Exists(filename)) 834 if (File.Exists(filename))
835 { 835 {
836 UpdateFileLastAccessTime(filename); 836 UpdateFileLastAccessTime(filename);
837 assetsFound[assetID] = true;
837 } 838 }
838 else if (storeUncached) 839 else if (storeUncached)
839 { 840 {
@@ -1034,6 +1035,7 @@ namespace OpenSim.Region.CoreModules.Asset
1034 } 1035 }
1035 } 1036 }
1036 int assetReferenceTotal = TouchAllSceneAssets(true); 1037 int assetReferenceTotal = TouchAllSceneAssets(true);
1038 GC.Collect();
1037 lock(timerLock) 1039 lock(timerLock)
1038 { 1040 {
1039 if(wasRunning) 1041 if(wasRunning)