aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs2
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs2
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs9
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs1
4 files changed, 4 insertions, 10 deletions
diff --git a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
index 6585860..a394b1a 100644
--- a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
+++ b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
@@ -70,7 +70,6 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
70 long numBytes = fInfo.Length; 70 long numBytes = fInfo.Length;
71 if (fInfo.Exists) 71 if (fInfo.Exists)
72 { 72 {
73
74 FileStream fStream = new FileStream(path, FileMode.Open, FileAccess.Read); 73 FileStream fStream = new FileStream(path, FileMode.Open, FileAccess.Read);
75 byte[] idata = new byte[numBytes]; 74 byte[] idata = new byte[numBytes];
76 BinaryReader br = new BinaryReader(fStream); 75 BinaryReader br = new BinaryReader(fStream);
@@ -86,7 +85,6 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
86 } 85 }
87 } 86 }
88 87
89
90 public void ForEachDefaultXmlAsset(string assetSetFilename, Action<AssetBase> action) 88 public void ForEachDefaultXmlAsset(string assetSetFilename, Action<AssetBase> action)
91 { 89 {
92 List<AssetBase> assets = new List<AssetBase>(); 90 List<AssetBase> assets = new List<AssetBase>();
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
index 2a1c82e..0441215 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
@@ -294,7 +294,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
294 destFolder 294 destFolder
295 = new InventoryFolderBase( 295 = new InventoryFolderBase(
296 newFolderId, newFolderName, m_userInfo.UserProfile.ID, 296 newFolderId, newFolderName, m_userInfo.UserProfile.ID,
297 (short)AssetType.Folder, destFolder.ID, 0); 297 (short)AssetType.Folder, destFolder.ID, 1);
298 m_scene.InventoryService.AddFolder(destFolder); 298 m_scene.InventoryService.AddFolder(destFolder);
299 299
300// UUID newFolderId = UUID.Random(); 300// UUID newFolderId = UUID.Random();
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
index 9c5f8f3..cc16c47 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs
@@ -219,8 +219,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
219 UUID userItemCreatorUuid = UUID.Parse("00000000-0000-0000-0000-000000000666"); 219 UUID userItemCreatorUuid = UUID.Parse("00000000-0000-0000-0000-000000000666");
220 220
221 string itemName = "b.lsl"; 221 string itemName = "b.lsl";
222 string archiveItemName 222 string archiveItemName = InventoryArchiveWriteRequest.CreateArchiveItemName(itemName, UUID.Random());
223 = string.Format("{0}{1}{2}", itemName, "_", UUID.Random());
224 223
225 MemoryStream archiveWriteStream = new MemoryStream(); 224 MemoryStream archiveWriteStream = new MemoryStream();
226 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream); 225 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream);
@@ -313,8 +312,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
313 //UUID userItemCreatorUuid = UUID.Parse("00000000-0000-0000-0000-000000008888"); 312 //UUID userItemCreatorUuid = UUID.Parse("00000000-0000-0000-0000-000000008888");
314 313
315 string itemName = "b.lsl"; 314 string itemName = "b.lsl";
316 string archiveItemName 315 string archiveItemName = InventoryArchiveWriteRequest.CreateArchiveItemName(itemName, UUID.Random());
317 = string.Format("{0}{1}{2}", itemName, "_", UUID.Random());
318 316
319 MemoryStream archiveWriteStream = new MemoryStream(); 317 MemoryStream archiveWriteStream = new MemoryStream();
320 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream); 318 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream);
@@ -381,8 +379,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
381 string user2LastName = "Mitty"; 379 string user2LastName = "Mitty";
382 380
383 string itemName = "b.lsl"; 381 string itemName = "b.lsl";
384 string archiveItemName 382 string archiveItemName = InventoryArchiveWriteRequest.CreateArchiveItemName(itemName, UUID.Random());
385 = string.Format("{0}{1}{2}", itemName, "_", UUID.Random());
386 383
387 MemoryStream archiveWriteStream = new MemoryStream(); 384 MemoryStream archiveWriteStream = new MemoryStream();
388 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream); 385 TarArchiveWriter tar = new TarArchiveWriter(archiveWriteStream);
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ecf0d80..5e27eff 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1293,7 +1293,6 @@ namespace OpenSim.Region.Framework.Scenes
1293 } 1293 }
1294 catch (IOException e) 1294 catch (IOException e)
1295 { 1295 {
1296
1297 m_log.Warn("[TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception " + e.ToString() + " Regenerating"); 1296 m_log.Warn("[TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception " + e.ToString() + " Regenerating");
1298 1297
1299 // Non standard region size. If there's an old terrain in the database, it might read past the buffer 1298 // Non standard region size. If there's an old terrain in the database, it might read past the buffer