aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/UuidGatherer.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
index 3a71c12..548aa3a 100644
--- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
+++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
@@ -93,7 +93,8 @@ namespace OpenSim.Region.Framework.Scenes
93 /// <param name="assetService"> 93 /// <param name="assetService">
94 /// Asset service. 94 /// Asset service.
95 /// </param> 95 /// </param>
96 public UuidGatherer(IAssetService assetService) : this(assetService, new Dictionary<UUID, sbyte>()) {} 96 public UuidGatherer(IAssetService assetService) : this(assetService, new Dictionary<UUID, sbyte>(), new HashSet <UUID>()) {}
97 public UuidGatherer(IAssetService assetService, IDictionary<UUID, sbyte> collector) : this(assetService, collector, new HashSet <UUID>()) {}
97 98
98 /// <summary> 99 /// <summary>
99 /// Initializes a new instance of the <see cref="OpenSim.Region.Framework.Scenes.UuidGatherer"/> class. 100 /// Initializes a new instance of the <see cref="OpenSim.Region.Framework.Scenes.UuidGatherer"/> class.
@@ -105,14 +106,14 @@ namespace OpenSim.Region.Framework.Scenes
105 /// Gathered UUIDs will be collected in this dictinaory. 106 /// Gathered UUIDs will be collected in this dictinaory.
106 /// It can be pre-populated if you want to stop the gatherer from analyzing assets that have already been fetched and inspected. 107 /// It can be pre-populated if you want to stop the gatherer from analyzing assets that have already been fetched and inspected.
107 /// </param> 108 /// </param>
108 public UuidGatherer(IAssetService assetService, IDictionary<UUID, sbyte> collector) 109 public UuidGatherer(IAssetService assetService, IDictionary<UUID, sbyte> collector, HashSet <UUID> failedIDs)
109 { 110 {
110 m_assetService = assetService; 111 m_assetService = assetService;
111 GatheredUuids = collector; 112 GatheredUuids = collector;
112 113
113 // FIXME: Not efficient for searching, can improve. 114 // FIXME: Not efficient for searching, can improve.
114 m_assetUuidsToInspect = new Queue<UUID>(); 115 m_assetUuidsToInspect = new Queue<UUID>();
115 FailedUUIDs = new HashSet<UUID>(); 116 FailedUUIDs = failedIDs;
116 } 117 }
117 118
118 /// <summary> 119 /// <summary>
@@ -301,14 +302,14 @@ namespace OpenSim.Region.Framework.Scenes
301 } 302 }
302 catch (Exception e) 303 catch (Exception e)
303 { 304 {
304 m_log.ErrorFormat("[UUID GATHERER]: Failed to get asset with id {0} : {1}", assetUuid, e.Message); 305 m_log.ErrorFormat("[UUID GATHERER]: Failed to get asset {0} : {1}", assetUuid, e.Message);
305 FailedUUIDs.Add(assetUuid); 306 FailedUUIDs.Add(assetUuid);
306 return; 307 return;
307 } 308 }
308 309
309 if(assetBase == null) 310 if(assetBase == null)
310 { 311 {
311 m_log.ErrorFormat("[UUID GATHERER]: asset with id {0} not found", assetUuid); 312 m_log.ErrorFormat("[UUID GATHERER]: asset {0} not found", assetUuid);
312 FailedUUIDs.Add(assetUuid); 313 FailedUUIDs.Add(assetUuid);
313 return; 314 return;
314 } 315 }
@@ -317,7 +318,7 @@ namespace OpenSim.Region.Framework.Scenes
317 318
318 if(assetBase.Data == null || assetBase.Data.Length == 0) 319 if(assetBase.Data == null || assetBase.Data.Length == 0)
319 { 320 {
320 m_log.ErrorFormat("[UUID GATHERER]: asset with id {0} type {1} has no data", assetUuid, assetType); 321 m_log.ErrorFormat("[UUID GATHERER]: asset {0}, type {1} has no data", assetUuid, assetType);
321 FailedUUIDs.Add(assetUuid); 322 FailedUUIDs.Add(assetUuid);
322 return; 323 return;
323 } 324 }