diff options
author | UbitUmarov | 2016-08-21 04:56:23 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-21 04:56:23 +0100 |
commit | 963b296f93c22a8a560f54db5c7aede9903920b8 (patch) | |
tree | b5f326ebc0f78ddb4fb590958a3f54d23d85c138 /OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset | |
parent | partially apply patch in mantis 8002 (diff) | |
download | opensim-SC-963b296f93c22a8a560f54db5c7aede9903920b8.zip opensim-SC-963b296f93c22a8a560f54db5c7aede9903920b8.tar.gz opensim-SC-963b296f93c22a8a560f54db5c7aede9903920b8.tar.bz2 opensim-SC-963b296f93c22a8a560f54db5c7aede9903920b8.tar.xz |
in HGAssetBroker do cache all if asset id changed
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs index ade6381..9eb41f9 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs | |||
@@ -367,12 +367,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
367 | if (String.IsNullOrEmpty(id)) | 367 | if (String.IsNullOrEmpty(id)) |
368 | return string.Empty; | 368 | return string.Empty; |
369 | 369 | ||
370 | asset.ID = id; | 370 | if(asset.ID != id) |
371 | 371 | { | |
372 | if (isHG && m_Cache != null) | 372 | asset.ID = id; |
373 | m_Cache.Cache(asset); | 373 | if (m_Cache != null) |
374 | m_Cache.Cache(asset); | ||
375 | } | ||
374 | 376 | ||
375 | return id; | 377 | return id; |
376 | } | 378 | } |
377 | 379 | ||
378 | public bool UpdateContent(string id, byte[] data) | 380 | public bool UpdateContent(string id, byte[] data) |