aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-03-13 20:46:53 +0000
committerJustin Clarke Casey2009-03-13 20:46:53 +0000
commitc04e7cdf2b8f95534dafe7faedb29e1ff1af36c8 (patch)
treefc5a72b39ba72eee84afba4dc9ff315acbb0096f /OpenSim/Region/CoreModules/World
parent* Remove asset cache size and texture stat reports from ASSET STATS since the... (diff)
downloadopensim-SC-c04e7cdf2b8f95534dafe7faedb29e1ff1af36c8.zip
opensim-SC-c04e7cdf2b8f95534dafe7faedb29e1ff1af36c8.tar.gz
opensim-SC-c04e7cdf2b8f95534dafe7faedb29e1ff1af36c8.tar.bz2
opensim-SC-c04e7cdf2b8f95534dafe7faedb29e1ff1af36c8.tar.xz
* Support loading empty folders in an iar
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs11
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs8
2 files changed, 12 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
index 076fbce..0a0bb4c 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
@@ -83,6 +83,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver
83 83
84 protected internal void Execute() 84 protected internal void Execute()
85 { 85 {
86 m_log.DebugFormat("[ARCHIVER]: AssetsRequest executed looking for {0} assets", m_repliesRequired);
87
86 // We can stop here if there are no assets to fetch 88 // We can stop here if there are no assets to fetch
87 if (m_repliesRequired == 0) 89 if (m_repliesRequired == 0)
88 m_assetsRequestCallback(m_assets, m_notFoundAssetUuids); 90 m_assetsRequestCallback(m_assets, m_notFoundAssetUuids);
@@ -100,6 +102,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver
100 /// <param name="asset"></param> 102 /// <param name="asset"></param>
101 public void AssetRequestCallback(UUID assetID, AssetBase asset) 103 public void AssetRequestCallback(UUID assetID, AssetBase asset)
102 { 104 {
105 //m_log.DebugFormat("[ARCHIVER]: Received callback for asset {0}", assetID);
106
103 if (asset != null) 107 if (asset != null)
104 { 108 {
105 m_assetCache.ExpireAsset(assetID); 109 m_assetCache.ExpireAsset(assetID);
@@ -110,11 +114,12 @@ namespace OpenSim.Region.CoreModules.World.Archiver
110 m_notFoundAssetUuids.Add(assetID); 114 m_notFoundAssetUuids.Add(assetID);
111 } 115 }
112 116
113 //m_log.DebugFormat(
114 // "[ARCHIVER]: Received {0} assets and notification of {1} missing assets", m_assets.Count, m_notFoundAssetUuids.Count);
115
116 if (m_assets.Count + m_notFoundAssetUuids.Count == m_repliesRequired) 117 if (m_assets.Count + m_notFoundAssetUuids.Count == m_repliesRequired)
117 { 118 {
119 m_log.DebugFormat(
120 "[ARCHIVER]: Successfully received {0} assets and notification of {1} missing assets",
121 m_assets.Count, m_notFoundAssetUuids.Count);
122
118 // We want to stop using the asset cache thread asap as we now need to do the actual work of producing the archive 123 // We want to stop using the asset cache thread asap as we now need to do the actual work of producing the archive
119 Thread newThread = new Thread(PerformAssetsRequestCallback); 124 Thread newThread = new Thread(PerformAssetsRequestCallback);
120 newThread.Name = "OpenSimulator archiving thread post assets receipt"; 125 newThread.Name = "OpenSimulator archiving thread post assets receipt";
diff --git a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
index 7aafaee..f6d0347 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
@@ -222,6 +222,9 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
222 object1PartLoaded.RotationOffset, Is.EqualTo(rotationOffset), "object1 rotation offset not equal"); 222 object1PartLoaded.RotationOffset, Is.EqualTo(rotationOffset), "object1 rotation offset not equal");
223 Assert.That( 223 Assert.That(
224 object1PartLoaded.OffsetPosition, Is.EqualTo(offsetPosition), "object1 offset position not equal"); 224 object1PartLoaded.OffsetPosition, Is.EqualTo(offsetPosition), "object1 offset position not equal");
225
226 // Temporary
227 Console.WriteLine("Successfully completed {0}", MethodBase.GetCurrentMethod());
225 } 228 }
226 229
227 /// <summary> 230 /// <summary>
@@ -304,10 +307,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
304 Assert.That(object2PartMerged, Is.Not.Null, "object2 was not present after merge"); 307 Assert.That(object2PartMerged, Is.Not.Null, "object2 was not present after merge");
305 Assert.That(object2PartMerged.Name, Is.EqualTo(part2Name), "object2 names not identical after merge"); 308 Assert.That(object2PartMerged.Name, Is.EqualTo(part2Name), "object2 names not identical after merge");
306 Assert.That(object2PartMerged.GroupPosition, Is.EqualTo(part2GroupPosition), "object2 group position not equal after merge"); 309 Assert.That(object2PartMerged.GroupPosition, Is.EqualTo(part2GroupPosition), "object2 group position not equal after merge");
307 } 310 }
308
309 // Temporary
310 Console.WriteLine("Successfully completed {0}", MethodBase.GetCurrentMethod());
311 } 311 }
312 } 312 }
313} 313}