Remove Temporary from use to shortcut asset stores. The Local property

differentiates between local & grid storage. The Temporary property just
says that which service handles the it, the asset can be safely removed
in the future.
cpu-performance
Mic Bowman 2013-06-10 13:26:19 -07:00
parent 7de0912a97
commit 57141e34bf
4 changed files with 4 additions and 3 deletions

View File

@ -189,6 +189,7 @@ namespace OpenSim.Capabilities.Handlers
newTexture.Flags = AssetFlags.Collectable;
newTexture.Temporary = true;
newTexture.Local = true;
m_assetService.Store(newTexture);
WriteTextureData(httpRequest, httpResponse, newTexture, format);
return true;

View File

@ -322,7 +322,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
// a copy of the local asset.
m_Cache.Cache(asset);
if (asset.Temporary || asset.Local)
if (asset.Local)
{
if (m_Cache != null)
m_Cache.Cache(asset);

View File

@ -258,7 +258,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
if (m_Cache != null)
m_Cache.Cache(asset);
if (asset.Temporary || asset.Local)
if (asset.Local)
{
// m_log.DebugFormat(
// "[LOCAL ASSET SERVICE CONNECTOR]: Returning asset {0} {1} without querying database since status Temporary = {2}, Local = {3}",

View File

@ -251,7 +251,7 @@ namespace OpenSim.Services.Connectors
public string Store(AssetBase asset)
{
if (asset.Temporary || asset.Local)
if (asset.Local)
{
if (m_Cache != null)
m_Cache.Cache(asset);