refactor: route the final scene backup through the same code that handles periodic backup
This is rather than making unnecessary duplicate checks that the SOG later performs again.user_profiles
parent
17f21ba9a0
commit
983e458bb6
|
@ -1322,16 +1322,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
m_log.Debug("[SCENE]: Persisting changed objects");
|
m_log.Debug("[SCENE]: Persisting changed objects");
|
||||||
EventManager.TriggerSceneShuttingDown(this);
|
EventManager.TriggerSceneShuttingDown(this);
|
||||||
|
Backup(false);
|
||||||
EntityBase[] entities = GetEntities();
|
|
||||||
foreach (EntityBase entity in entities)
|
|
||||||
{
|
|
||||||
if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged)
|
|
||||||
{
|
|
||||||
((SceneObjectGroup)entity).ProcessBackup(SimulationDataService, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_sceneGraph.Close();
|
m_sceneGraph.Close();
|
||||||
|
|
||||||
if (!GridService.DeregisterRegion(RegionInfo.RegionID))
|
if (!GridService.DeregisterRegion(RegionInfo.RegionID))
|
||||||
|
|
Loading…
Reference in New Issue