aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-09-01 22:05:05 +0100
committerJustin Clark-Casey (justincc)2011-09-01 22:05:05 +0100
commit1bf29d60e1a6839a1b81e0afc656a97f252e13cc (patch)
tree58507d47f389d7e4876f09562d5dff2857510d75 /OpenSim/Data/MSSQL/MSSQLSimulationData.cs
parentIf the user receiving an inventory folder has left the scene by the time the ... (diff)
downloadopensim-SC_OLD-1bf29d60e1a6839a1b81e0afc656a97f252e13cc.zip
opensim-SC_OLD-1bf29d60e1a6839a1b81e0afc656a97f252e13cc.tar.gz
opensim-SC_OLD-1bf29d60e1a6839a1b81e0afc656a97f252e13cc.tar.bz2
opensim-SC_OLD-1bf29d60e1a6839a1b81e0afc656a97f252e13cc.tar.xz
Remove code which was automatically deleting non-root prims from scene objects that had previous been attachments.
Looks like this code was accidentally uncommented in e1b5c612 from feb 2010. Appears to resolve the rest of http://opensimulator.org/mantis/view.php?id=5664
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLSimulationData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLSimulationData.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
index 78f80e1..bb59bba 100644
--- a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
@@ -84,21 +84,6 @@ namespace OpenSim.Data.MSSQL
84 //New Migration settings 84 //New Migration settings
85 Migration m = new Migration(conn, Assembly, "RegionStore"); 85 Migration m = new Migration(conn, Assembly, "RegionStore");
86 m.Update(); 86 m.Update();
87
88 // Clean dropped attachments
89 //
90 try
91 {
92 using (SqlCommand cmd = conn.CreateCommand())
93 {
94 cmd.CommandText = "delete from prims where prims.UUID in (select UUID from primshapes where PCode = 9 and State <> 0); delete from primshapes where PCode = 9 and State <> 0";
95 cmd.ExecuteNonQuery();
96 }
97 }
98 catch (Exception ex)
99 {
100 _Log.Error("[REGION DB]: Error cleaning up dropped attachments: " + ex.Message);
101 }
102 } 87 }
103 } 88 }
104 89