mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
* Remove asset cache size and texture stat reports from ASSET STATS since these are now inaccurate
* Correct count of assets in cache
This commit is contained in:
@@ -312,18 +312,20 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
{
|
||||
m_assetServer.StoreAsset(asset);
|
||||
}
|
||||
|
||||
if (StatsManager.SimExtraStats != null)
|
||||
StatsManager.SimExtraStats.AddAsset(asset);
|
||||
}
|
||||
}
|
||||
|
||||
public void ExpireAsset(UUID uuid)
|
||||
{
|
||||
// uuid is unique, so no need to worry about it showing up
|
||||
// in the 2 caches differently. Also, locks are probably
|
||||
// needed in all of this, or move to synchronized non
|
||||
// generic forms for Dictionaries.
|
||||
if (m_memcache.Contains(uuid))
|
||||
{
|
||||
m_memcache.Remove(uuid);
|
||||
|
||||
if (StatsManager.SimExtraStats != null)
|
||||
StatsManager.SimExtraStats.RemoveAsset(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user