diff options
Added a ForceSceneObjectBackup method to Scene, which as it says forces a database backup/update on the SceneObjectGroup.
This is now called at the beginning of DeRezObject, so we know the database is upto date before we attempt to delete a object.
Fix Mantis #1004
Which happened because Database backups don't happen if a object is still selected, so when you select a part in a link-set and then unlink it and then delete it, all without unselecting the prim at all. The unlink changes never get updated to the database. So then when the call to delete the prim from the database happens, which is called with the SceneObjectId. That SceneObjectId is never found, as the database still has that prim as part of another link set.
It is possible that these changes might have to be reverted and for us to find a different method of fixing the problem. If the performance overhead is too high or it causes any other problems.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index 618e6b5..bba7eed 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
52 | 52 | ||
53 | public event OnTerrainTickDelegate OnTerrainTick; | 53 | public event OnTerrainTickDelegate OnTerrainTick; |
54 | 54 | ||
55 | public delegate void OnBackupDelegate(IRegionDataStore datastore); | 55 | public delegate void OnBackupDelegate(IRegionDataStore datastore, bool forceBackup); |
56 | 56 | ||
57 | public event OnBackupDelegate OnBackup; | 57 | public event OnBackupDelegate OnBackup; |
58 | 58 | ||
@@ -504,7 +504,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
504 | handlerBackup = OnBackup; | 504 | handlerBackup = OnBackup; |
505 | if (handlerBackup != null) | 505 | if (handlerBackup != null) |
506 | { | 506 | { |
507 | handlerBackup(dstore); | 507 | handlerBackup(dstore, false); |
508 | } | 508 | } |
509 | } | 509 | } |
510 | 510 | ||