aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-09-21 01:57:13 +0100
committerJustin Clark-Casey (justincc)2012-09-21 01:57:13 +0100
commit632a42e2b1e9a649be812ed57de1189778a370c9 (patch)
treeb116df88151a3c76a5ff90a865bfd32ea5edebc5 /OpenSim/Region/Framework/Scenes
parentSimplify UuidGatherer by performing asset fetch synchronously rather than usi... (diff)
downloadopensim-SC_OLD-632a42e2b1e9a649be812ed57de1189778a370c9.zip
opensim-SC_OLD-632a42e2b1e9a649be812ed57de1189778a370c9.tar.gz
opensim-SC_OLD-632a42e2b1e9a649be812ed57de1189778a370c9.tar.bz2
opensim-SC_OLD-632a42e2b1e9a649be812ed57de1189778a370c9.tar.xz
Rename UuidGather.m_assetCache to m_assetService. If HGUuidGatherer hasn't been instantiated with an assetServerURL then call down to overriden UuidGatherer.GetAsset() instead of calling m_assetService.GetAsset() itself - these two codepaths are now identical.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/UuidGatherer.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
index af99090..dc4a082 100644
--- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
+++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
@@ -52,11 +52,8 @@ namespace OpenSim.Region.Framework.Scenes
52 public class UuidGatherer 52 public class UuidGatherer
53 { 53 {
54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
55 55
56 /// <summary> 56 protected IAssetService m_assetService;
57 /// Asset cache used for gathering assets
58 /// </summary>
59 protected IAssetService m_assetCache;
60 57
61// /// <summary> 58// /// <summary>
62// /// Used as a temporary store of an asset which represents an object. This can be a null if no appropriate 59// /// Used as a temporary store of an asset which represents an object. This can be a null if no appropriate
@@ -71,7 +68,7 @@ namespace OpenSim.Region.Framework.Scenes
71 68
72 public UuidGatherer(IAssetService assetCache) 69 public UuidGatherer(IAssetService assetCache)
73 { 70 {
74 m_assetCache = assetCache; 71 m_assetService = assetCache;
75 } 72 }
76 73
77 /// <summary> 74 /// <summary>
@@ -216,7 +213,7 @@ namespace OpenSim.Region.Framework.Scenes
216 /// <returns></returns> 213 /// <returns></returns>
217 protected virtual AssetBase GetAsset(UUID uuid) 214 protected virtual AssetBase GetAsset(UUID uuid)
218 { 215 {
219 return m_assetCache.Get(uuid.ToString()); 216 return m_assetService.Get(uuid.ToString());
220 217
221 // XXX: Switching to do this synchronously where the call was async before but we always waited for it 218 // XXX: Switching to do this synchronously where the call was async before but we always waited for it
222 // to complete anyway! 219 // to complete anyway!