aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-06-23 15:50:16 +0100
committerUbitUmarov2017-06-23 15:50:16 +0100
commit3c6790b061fe1dd6d7cf602a3eb082b5bd149012 (patch)
treea046ad46ffb3091a40af7131b21981db09f52ebe /OpenSim/Region/Framework/Scenes/UuidGatherer.cs
parent actually iar do it for iar (diff)
downloadopensim-SC_OLD-3c6790b061fe1dd6d7cf602a3eb082b5bd149012.zip
opensim-SC_OLD-3c6790b061fe1dd6d7cf602a3eb082b5bd149012.tar.gz
opensim-SC_OLD-3c6790b061fe1dd6d7cf602a3eb082b5bd149012.tar.bz2
opensim-SC_OLD-3c6790b061fe1dd6d7cf602a3eb082b5bd149012.tar.xz
several changes to iar/oar assets error reports
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UuidGatherer.cs')
-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 }