aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-03-13 18:36:24 +0000
committerJustin Clarke Casey2009-03-13 18:36:24 +0000
commit6573e2ee2f2a5df57e40a1fa83688477e9d15ff3 (patch)
tree4ff600c7fbb5a19c6fbf21cae5a7b4dcf0827ea0 /OpenSim/Framework/Communications
parent* Config preview round 2 (diff)
downloadopensim-SC-6573e2ee2f2a5df57e40a1fa83688477e9d15ff3.zip
opensim-SC-6573e2ee2f2a5df57e40a1fa83688477e9d15ff3.tar.gz
opensim-SC-6573e2ee2f2a5df57e40a1fa83688477e9d15ff3.tar.bz2
opensim-SC-6573e2ee2f2a5df57e40a1fa83688477e9d15ff3.tar.xz
* Remove asset cache size and texture stat reports from ASSET STATS since these are now inaccurate
* Correct count of assets in cache
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs
index dfbdb09..7d06a1e 100644
--- a/OpenSim/Framework/Communications/Cache/AssetCache.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs
@@ -312,18 +312,20 @@ namespace OpenSim.Framework.Communications.Cache
312 { 312 {
313 m_assetServer.StoreAsset(asset); 313 m_assetServer.StoreAsset(asset);
314 } 314 }
315
316 if (StatsManager.SimExtraStats != null)
317 StatsManager.SimExtraStats.AddAsset(asset);
315 } 318 }
316 } 319 }
317 320
318 public void ExpireAsset(UUID uuid) 321 public void ExpireAsset(UUID uuid)
319 { 322 {
320 // uuid is unique, so no need to worry about it showing up
321 // in the 2 caches differently. Also, locks are probably
322 // needed in all of this, or move to synchronized non
323 // generic forms for Dictionaries.
324 if (m_memcache.Contains(uuid)) 323 if (m_memcache.Contains(uuid))
325 { 324 {
326 m_memcache.Remove(uuid); 325 m_memcache.Remove(uuid);
326
327 if (StatsManager.SimExtraStats != null)
328 StatsManager.SimExtraStats.RemoveAsset(uuid);
327 } 329 }
328 } 330 }
329 331