aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs
index 7fcfc74..96322e9 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs
@@ -180,6 +180,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
180 180
181 if (!(m_Cache is ISharedRegionModule)) 181 if (!(m_Cache is ISharedRegionModule))
182 m_Cache = null; 182 m_Cache = null;
183
183 } 184 }
184 185
185 m_log.InfoFormat("[HG ASSET CONNECTOR]: Enabled hypergrid asset broker for region {0}", scene.RegionInfo.RegionName); 186 m_log.InfoFormat("[HG ASSET CONNECTOR]: Enabled hypergrid asset broker for region {0}", scene.RegionInfo.RegionName);
@@ -338,21 +339,20 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
338 339
339 public string Store(AssetBase asset) 340 public string Store(AssetBase asset)
340 { 341 {
341 bool isHG = IsHG(asset.ID); 342 if (asset.Local || asset.Temporary)
343 {
344 if (m_Cache != null)
345 m_Cache.Cache(asset);
346 return asset.ID;
347 }
342 348
349 bool isHG = IsHG(asset.ID);
343 if ((m_Cache != null) && !isHG) 350 if ((m_Cache != null) && !isHG)
344 // Don't store it in the cache if the asset is to 351 // Don't store it in the cache if the asset is to
345 // be sent to the other grid, because this is already 352 // be sent to the other grid, because this is already
346 // a copy of the local asset. 353 // a copy of the local asset.
347 m_Cache.Cache(asset); 354 m_Cache.Cache(asset);
348 355
349 if (asset.Local)
350 {
351 if (m_Cache != null)
352 m_Cache.Cache(asset);
353 return asset.ID;
354 }
355
356 string id; 356 string id;
357 if (IsHG(asset.ID)) 357 if (IsHG(asset.ID))
358 { 358 {