aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authordiva2009-06-08 19:35:36 +0000
committerdiva2009-06-08 19:35:36 +0000
commitb87f982a7edfd612a40548d40826afda8cdc44a0 (patch)
tree9bd2d1bda46bbeaee83fabe61a7f04bf131dc95b /OpenSim/Region
parentThat didn't quite work. Trying this instead -- prompt given in the cmd line. (diff)
downloadopensim-SC_OLD-b87f982a7edfd612a40548d40826afda8cdc44a0.zip
opensim-SC_OLD-b87f982a7edfd612a40548d40826afda8cdc44a0.tar.gz
opensim-SC_OLD-b87f982a7edfd612a40548d40826afda8cdc44a0.tar.bz2
opensim-SC_OLD-b87f982a7edfd612a40548d40826afda8cdc44a0.tar.xz
Bug fix. Adding the asset to the cache after a DB get.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs
index 995a47a..8f390ad 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs
@@ -151,7 +151,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Asset
151 asset = m_Cache.Get(id); 151 asset = m_Cache.Get(id);
152 152
153 if (asset == null) 153 if (asset == null)
154 return m_AssetService.Get(id); 154 {
155 asset = m_AssetService.Get(id);
156 if ((m_Cache != null) && (asset != null))
157 m_Cache.Cache(asset);
158 }
155 return asset; 159 return asset;
156 } 160 }
157 161