aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
index 121e863..af5f69a 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
@@ -136,7 +136,10 @@ namespace OpenSim.Services.Connectors.SimianGrid
136 // Cache fetch 136 // Cache fetch
137 if (m_cache != null) 137 if (m_cache != null)
138 { 138 {
139 AssetBase asset = m_cache.Get(id); 139 bool negative;
140 AssetBase asset = m_cache.Get(id, out negative);
141 if (negative)
142 return null;
140 if (asset != null) 143 if (asset != null)
141 return asset; 144 return asset;
142 } 145 }
@@ -147,8 +150,9 @@ namespace OpenSim.Services.Connectors.SimianGrid
147 150
148 public AssetBase GetCached(string id) 151 public AssetBase GetCached(string id)
149 { 152 {
153 bool negative;
150 if (m_cache != null) 154 if (m_cache != null)
151 return m_cache.Get(id); 155 return m_cache.Get(id, out negative);
152 156
153 return null; 157 return null;
154 } 158 }
@@ -169,7 +173,10 @@ namespace OpenSim.Services.Connectors.SimianGrid
169 // Cache fetch 173 // Cache fetch
170 if (m_cache != null) 174 if (m_cache != null)
171 { 175 {
172 AssetBase asset = m_cache.Get(id); 176 bool negative;
177 AssetBase asset = m_cache.Get(id, out negative);
178 if (negative)
179 return null;
173 if (asset != null) 180 if (asset != null)
174 return asset.Metadata; 181 return asset.Metadata;
175 } 182 }
@@ -212,7 +219,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
212 // Cache fetch 219 // Cache fetch
213 if (m_cache != null) 220 if (m_cache != null)
214 { 221 {
215 AssetBase asset = m_cache.Get(id); 222 bool negative;
223 AssetBase asset = m_cache.Get(id, out negative);
224
225 if (negative)
226 return false;
227
216 if (asset != null) 228 if (asset != null)
217 { 229 {
218 handler(id, sender, asset); 230 handler(id, sender, asset);