mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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}",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user