Mantis#2597. Thank you kindly, Idb for a patch that:

Solves the problem of changes to objects not 
persisted on server shutdown.
0.6.1-post-fixes
Charles Krinke 2008-11-13 04:23:31 +00:00
parent c18ce34d06
commit 8a3d9ea2db
1 changed files with 10 additions and 0 deletions

View File

@ -653,6 +653,16 @@ namespace OpenSim.Region.Environment.Scenes
//m_heartbeatTimer.Close();
shuttingdown = true;
m_log.Debug("[SCENE]: Persisting changed objects");
List<EntityBase> 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)