aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Archiver
diff options
context:
space:
mode:
authorMelanie2011-05-14 21:09:52 +0100
committerMelanie2011-05-14 21:09:52 +0100
commit37a7b8786248e3af9774b8051dc29001b49179bd (patch)
tree18f5ae3490fe16ddf906482ef578bb590291d592 /OpenSim/Region/CoreModules/World/Archiver
parentGlobally throttle script channel 0 comms to 5/s with 10s burst to prevent lag (diff)
parentAlso changed a couple of messages in WebUtil from Wanr/Info to Debug. (diff)
downloadopensim-SC-37a7b8786248e3af9774b8051dc29001b49179bd.zip
opensim-SC-37a7b8786248e3af9774b8051dc29001b49179bd.tar.gz
opensim-SC-37a7b8786248e3af9774b8051dc29001b49179bd.tar.bz2
opensim-SC-37a7b8786248e3af9774b8051dc29001b49179bd.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Archiver')
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs11
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs2
2 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
index 930a117..d11d677 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
@@ -365,12 +365,15 @@ namespace OpenSim.Region.CoreModules.World.Archiver
365 365
366 landData.Add(parcel); 366 landData.Add(parcel);
367 } 367 }
368 368
369 if (!m_merge) 369 if (!m_merge)
370 m_scene.LandChannel.Clear(false); 370 {
371 bool setupDefaultParcel = (landData.Count == 0);
372 m_scene.LandChannel.Clear(setupDefaultParcel);
373 }
371 374
372 m_scene.EventManager.TriggerIncomingLandDataFromStorage(landData); 375 m_scene.EventManager.TriggerIncomingLandDataFromStorage(landData);
373 m_log.InfoFormat("[ARCHIVER]: Restored {0} parcels.", landData.Count); 376 m_log.InfoFormat("[ARCHIVER]: Restored {0} parcels.", landData.Count);
374 } 377 }
375 378
376 /// <summary> 379 /// <summary>
diff --git a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
index 2307c8e..729e9f7 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs
@@ -313,6 +313,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
313 Assert.That(loadedSoundAsset, Is.Not.Null, "loaded sound asset was null"); 313 Assert.That(loadedSoundAsset, Is.Not.Null, "loaded sound asset was null");
314 Assert.That(loadedSoundAsset.Data, Is.EqualTo(soundData), "saved and loaded sound data do not match"); 314 Assert.That(loadedSoundAsset.Data, Is.EqualTo(soundData), "saved and loaded sound data do not match");
315 315
316 Assert.Greater(m_scene.LandChannel.AllParcels().Count, 0, "incorrect number of parcels");
317
316 // Temporary 318 // Temporary
317 Console.WriteLine("Successfully completed {0}", MethodBase.GetCurrentMethod()); 319 Console.WriteLine("Successfully completed {0}", MethodBase.GetCurrentMethod());
318 } 320 }