mirror of
https://github.com/opensim/opensim.git
synced 2026-07-02 00:15:45 +08:00
removed additional debugging, added temp mega-debugging to StoreLandObject
This commit is contained in:
@@ -418,38 +418,57 @@ namespace OpenSim.Framework.Data.MySQL
|
||||
{
|
||||
lock (m_dataSet)
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 1");
|
||||
DataTable land = m_landTable;
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 2");
|
||||
DataTable landaccesslist = m_landAccessListTable;
|
||||
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 3");
|
||||
DataRow landRow = land.Rows.Find(Util.ToRawUuidString(parcel.landData.globalID));
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 4");
|
||||
if (landRow == null)
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 5");
|
||||
landRow = land.NewRow();
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 6");
|
||||
fillLandRow(landRow, parcel.landData, regionUUID);
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 7");
|
||||
land.Rows.Add(landRow);
|
||||
}
|
||||
else
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 8");
|
||||
fillLandRow(landRow, parcel.landData, regionUUID);
|
||||
}
|
||||
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 9");
|
||||
using (
|
||||
MySqlCommand cmd =
|
||||
new MySqlCommand("delete from landaccesslist where LandUUID=?LandUUID", m_connection))
|
||||
{
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 10");
|
||||
cmd.Parameters.Add(new MySqlParameter("?LandUUID", Util.ToRawUuidString(parcel.landData.globalID)));
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 11");
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12");
|
||||
int i = 0;
|
||||
foreach (ParcelManager.ParcelAccessEntry entry in parcel.landData.parcelAccessList)
|
||||
{
|
||||
i++;
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:1:" + i);
|
||||
DataRow newAccessRow = landaccesslist.NewRow();
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:2:" + i);
|
||||
fillLandAccessRow(newAccessRow, entry, parcel.landData.globalID);
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:3:" + i);
|
||||
landaccesslist.Rows.Add(newAccessRow);
|
||||
}
|
||||
}
|
||||
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 13");
|
||||
Commit();
|
||||
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 14");
|
||||
}
|
||||
|
||||
public List<LandData> LoadLandObjects(LLUUID regionUUID)
|
||||
|
||||
Reference in New Issue
Block a user