From 8a3d9ea2db9b1aae7014e3dc98ffc9185f3df0db Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 13 Nov 2008 04:23:31 +0000 Subject: Mantis#2597. Thank you kindly, Idb for a patch that: Solves the problem of changes to objects not persisted on server shutdown. --- OpenSim/Region/Environment/Scenes/Scene.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 //m_heartbeatTimer.Close(); shuttingdown = true; + m_log.Debug("[SCENE]: Persisting changed objects"); + List entities = GetEntities(); + foreach (EntityBase entity in entities) + { + if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged) + { + ((SceneObjectGroup)entity).ProcessBackup(m_storageManager.DataStore); + } + } + m_sceneGraph.Close(); // De-register with region communications (events cleanup) -- cgit v1.1