aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetServerBase.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
index 53efa16..74f0167 100644
--- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs
@@ -163,6 +163,8 @@ namespace OpenSim.Framework.Communications.Cache
163 163
164 public void ForEachXmlAsset(Action<AssetBase> action) 164 public void ForEachXmlAsset(Action<AssetBase> action)
165 { 165 {
166 List<AssetBase> assets = new List<AssetBase>();
167 // System.Console.WriteLine("trying loading asset into database");
166 string filePath = Path.Combine(Util.configDir(), "OpenSimAssetSet.xml"); 168 string filePath = Path.Combine(Util.configDir(), "OpenSimAssetSet.xml");
167 if (File.Exists(filePath)) 169 if (File.Exists(filePath))
168 { 170 {
@@ -170,6 +172,7 @@ namespace OpenSim.Framework.Communications.Cache
170 172
171 for (int i = 0; i < source.Configs.Count; i++) 173 for (int i = 0; i < source.Configs.Count; i++)
172 { 174 {
175 // System.Console.WriteLine("loading asset into database");
173 string assetIdStr = source.Configs[i].GetString("assetID", LLUUID.Random().ToStringHyphenated()); 176 string assetIdStr = source.Configs[i].GetString("assetID", LLUUID.Random().ToStringHyphenated());
174 string name = source.Configs[i].GetString("name", ""); 177 string name = source.Configs[i].GetString("name", "");
175 sbyte type = (sbyte)source.Configs[i].GetInt("assetType", 0); 178 sbyte type = (sbyte)source.Configs[i].GetInt("assetType", 0);
@@ -180,9 +183,10 @@ namespace OpenSim.Framework.Communications.Cache
180 183
181 newAsset.Type = type; 184 newAsset.Type = type;
182 newAsset.InvType = invType; 185 newAsset.InvType = invType;
183 186 assets.Add(newAsset);
184 } 187 }
185 } 188 }
189 assets.ForEach(action);
186 } 190 }
187 } 191 }
188} 192}