aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
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/MySQL
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/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs17
1 files changed, 0 insertions, 17 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index e14d775..96ecea6 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -78,23 +78,6 @@ namespace OpenSim.Data.MySQL
78 // 78 //
79 Migration m = new Migration(dbcon, Assembly, "RegionStore"); 79 Migration m = new Migration(dbcon, Assembly, "RegionStore");
80 m.Update(); 80 m.Update();
81
82 // Clean dropped attachments
83 //
84 try
85 {
86 using (MySqlCommand cmd = dbcon.CreateCommand())
87 {
88 cmd.CommandText = "delete from prims, primshapes using prims " +
89 "left join primshapes on prims.uuid = primshapes.uuid " +
90 "where PCode = 9 and State <> 0";
91 ExecuteNonQuery(cmd);
92 }
93 }
94 catch (MySqlException ex)
95 {
96 m_log.Error("[REGION DB]: Error cleaning up dropped attachments: " + ex.Message);
97 }
98 } 81 }
99 } 82 }
100 83