aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-11-13 04:23:31 +0000
committerCharles Krinke2008-11-13 04:23:31 +0000
commit8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db (patch)
tree50732a69fc45a799c654f61340180abcb8e13582 /OpenSim/Region/Environment/Scenes/Scene.cs
parentUpdate avatar picker search to work with OpenSearch people search (diff)
downloadopensim-SC_OLD-8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db.zip
opensim-SC_OLD-8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db.tar.gz
opensim-SC_OLD-8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db.tar.bz2
opensim-SC_OLD-8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db.tar.xz
Mantis#2597. Thank you kindly, Idb for a patch that:
Solves the problem of changes to objects not persisted on server shutdown.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 7019673..5550140 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -653,6 +653,16 @@ namespace OpenSim.Region.Environment.Scenes
653 //m_heartbeatTimer.Close(); 653 //m_heartbeatTimer.Close();
654 shuttingdown = true; 654 shuttingdown = true;
655 655
656 m_log.Debug("[SCENE]: Persisting changed objects");
657 List<EntityBase> entities = GetEntities();
658 foreach (EntityBase entity in entities)
659 {
660 if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged)
661 {
662 ((SceneObjectGroup)entity).ProcessBackup(m_storageManager.DataStore);
663 }
664 }
665
656 m_sceneGraph.Close(); 666 m_sceneGraph.Close();
657 667
658 // De-register with region communications (events cleanup) 668 // De-register with region communications (events cleanup)