diff options
author | Justin Clark-Casey (justincc) | 2013-01-10 22:59:40 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-10 22:59:40 +0000 |
commit | 983e458bb67defd79c48d6ee66682f8f86e2029c (patch) | |
tree | 34404e503607fbb04ae1c421c1c7d2a7789310cc /OpenSim/Region/Framework | |
parent | minor: Capitalize GroupsModule command category (diff) | |
download | opensim-SC_OLD-983e458bb67defd79c48d6ee66682f8f86e2029c.zip opensim-SC_OLD-983e458bb67defd79c48d6ee66682f8f86e2029c.tar.gz opensim-SC_OLD-983e458bb67defd79c48d6ee66682f8f86e2029c.tar.bz2 opensim-SC_OLD-983e458bb67defd79c48d6ee66682f8f86e2029c.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index d0a2115..515184c 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1322,16 +1322,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1322 | 1322 | ||
1323 | m_log.Debug("[SCENE]: Persisting changed objects"); | 1323 | m_log.Debug("[SCENE]: Persisting changed objects"); |
1324 | EventManager.TriggerSceneShuttingDown(this); | 1324 | EventManager.TriggerSceneShuttingDown(this); |
1325 | 1325 | Backup(false); | |
1326 | EntityBase[] entities = GetEntities(); | ||
1327 | foreach (EntityBase entity in entities) | ||
1328 | { | ||
1329 | if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged) | ||
1330 | { | ||
1331 | ((SceneObjectGroup)entity).ProcessBackup(SimulationDataService, false); | ||
1332 | } | ||
1333 | } | ||
1334 | |||
1335 | m_sceneGraph.Close(); | 1326 | m_sceneGraph.Close(); |
1336 | 1327 | ||
1337 | if (!GridService.DeregisterRegion(RegionInfo.RegionID)) | 1328 | if (!GridService.DeregisterRegion(RegionInfo.RegionID)) |