mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Refactor asset handling as per Ubit's suggestion
This commit is contained in:
@@ -260,12 +260,9 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
/// Cache doesn't guarantee in any situation that asset is stored to it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public AssetBase Get(string id, out bool negative)
|
||||
public bool Get(string id, out AssetBase assetBase)
|
||||
{
|
||||
negative = false;
|
||||
|
||||
m_getCount++;
|
||||
AssetBase assetBase;
|
||||
if (m_cache.TryGetValue(id, out assetBase))
|
||||
m_hitCount++;
|
||||
|
||||
@@ -286,7 +283,7 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
// if (null == assetBase)
|
||||
// m_log.DebugFormat("[CENOME ASSET CACHE]: Asset {0} not in cache", id);
|
||||
|
||||
return assetBase;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user