removed additional debugging, added temp mega-debugging to StoreLandObject
parent
9e9ba262f7
commit
4b56e0e324
|
@ -418,38 +418,57 @@ namespace OpenSim.Framework.Data.MySQL
|
||||||
{
|
{
|
||||||
lock (m_dataSet)
|
lock (m_dataSet)
|
||||||
{
|
{
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 1");
|
||||||
DataTable land = m_landTable;
|
DataTable land = m_landTable;
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 2");
|
||||||
DataTable landaccesslist = m_landAccessListTable;
|
DataTable landaccesslist = m_landAccessListTable;
|
||||||
|
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 3");
|
||||||
DataRow landRow = land.Rows.Find(Util.ToRawUuidString(parcel.landData.globalID));
|
DataRow landRow = land.Rows.Find(Util.ToRawUuidString(parcel.landData.globalID));
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 4");
|
||||||
if (landRow == null)
|
if (landRow == null)
|
||||||
{
|
{
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 5");
|
||||||
landRow = land.NewRow();
|
landRow = land.NewRow();
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 6");
|
||||||
fillLandRow(landRow, parcel.landData, regionUUID);
|
fillLandRow(landRow, parcel.landData, regionUUID);
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 7");
|
||||||
land.Rows.Add(landRow);
|
land.Rows.Add(landRow);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 8");
|
||||||
fillLandRow(landRow, parcel.landData, regionUUID);
|
fillLandRow(landRow, parcel.landData, regionUUID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 9");
|
||||||
using (
|
using (
|
||||||
MySqlCommand cmd =
|
MySqlCommand cmd =
|
||||||
new MySqlCommand("delete from landaccesslist where LandUUID=?LandUUID", m_connection))
|
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)));
|
cmd.Parameters.Add(new MySqlParameter("?LandUUID", Util.ToRawUuidString(parcel.landData.globalID)));
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 11");
|
||||||
cmd.ExecuteNonQuery();
|
cmd.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12");
|
||||||
|
int i = 0;
|
||||||
foreach (ParcelManager.ParcelAccessEntry entry in parcel.landData.parcelAccessList)
|
foreach (ParcelManager.ParcelAccessEntry entry in parcel.landData.parcelAccessList)
|
||||||
{
|
{
|
||||||
|
i++;
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:1:" + i);
|
||||||
DataRow newAccessRow = landaccesslist.NewRow();
|
DataRow newAccessRow = landaccesslist.NewRow();
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:2:" + i);
|
||||||
fillLandAccessRow(newAccessRow, entry, parcel.landData.globalID);
|
fillLandAccessRow(newAccessRow, entry, parcel.landData.globalID);
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 12:3:" + i);
|
||||||
landaccesslist.Rows.Add(newAccessRow);
|
landaccesslist.Rows.Add(newAccessRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 13");
|
||||||
Commit();
|
Commit();
|
||||||
|
MainLog.Instance.Verbose("DATASTORE", "Tedd debug: 14");
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<LandData> LoadLandObjects(LLUUID regionUUID)
|
public List<LandData> LoadLandObjects(LLUUID regionUUID)
|
||||||
|
|
|
@ -447,14 +447,8 @@ namespace OpenSim.Region.Environment.LandManagement
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void forceUpdateLandInfo()
|
public void forceUpdateLandInfo()
|
||||||
{
|
{
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "updateAABBAndAreaValues()");
|
|
||||||
updateAABBAndAreaValues();
|
updateAABBAndAreaValues();
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "updateLandBitmapByteArray()");
|
|
||||||
updateLandBitmapByteArray();
|
updateLandBitmapByteArray();
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "end of forceUpdateLandInfo()");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLandBitmapFromByteArray()
|
public void setLandBitmapFromByteArray()
|
||||||
|
|
|
@ -138,17 +138,9 @@ namespace OpenSim.Region.Environment.LandManagement
|
||||||
|
|
||||||
public void IncomingLandObjectFromStorage(LandData data)
|
public void IncomingLandObjectFromStorage(LandData data)
|
||||||
{
|
{
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: " + data.localID);
|
|
||||||
Land new_land = new Land(data.ownerID, data.isGroupOwned, m_scene);
|
Land new_land = new Land(data.ownerID, data.isGroupOwned, m_scene);
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: data.Copy()");
|
|
||||||
new_land.landData = data.Copy();
|
new_land.landData = data.Copy();
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: new_land.setLandBitmapFromByteArray()");
|
|
||||||
new_land.setLandBitmapFromByteArray();
|
new_land.setLandBitmapFromByteArray();
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "IncomingLandObjectFromStorage: addLandObject(new_land)");
|
|
||||||
addLandObject(new_land);
|
addLandObject(new_land);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,15 +169,11 @@ namespace OpenSim.Region.Environment.LandManagement
|
||||||
/// <param name="new_land">The land object being added</param>
|
/// <param name="new_land">The land object being added</param>
|
||||||
public Land addLandObject(Land new_land)
|
public Land addLandObject(Land new_land)
|
||||||
{
|
{
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "addLandObject()");
|
|
||||||
lastLandLocalID++;
|
lastLandLocalID++;
|
||||||
new_land.landData.localID = lastLandLocalID;
|
new_land.landData.localID = lastLandLocalID;
|
||||||
landList.Add(lastLandLocalID, new_land.Copy());
|
landList.Add(lastLandLocalID, new_land.Copy());
|
||||||
|
|
||||||
|
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "new_land.getLandBitmap()");
|
|
||||||
bool[,] landBitmap = new_land.getLandBitmap();
|
bool[,] landBitmap = new_land.getLandBitmap();
|
||||||
int x, y;
|
int x, y;
|
||||||
for (x = 0; x < 64; x++)
|
for (x = 0; x < 64; x++)
|
||||||
|
@ -198,12 +186,8 @@ namespace OpenSim.Region.Environment.LandManagement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: REMOVE (TEDD)
|
|
||||||
MainLog.Instance.Verbose("LandManager", "forceUpdateLandInfo()");
|
|
||||||
landList[lastLandLocalID].forceUpdateLandInfo();
|
landList[lastLandLocalID].forceUpdateLandInfo();
|
||||||
MainLog.Instance.Verbose("LandManager", "TriggerLandObjectAdded");
|
|
||||||
m_scene.EventManager.TriggerLandObjectAdded(new_land, m_scene.RegionInfo.RegionID);
|
m_scene.EventManager.TriggerLandObjectAdded(new_land, m_scene.RegionInfo.RegionID);
|
||||||
MainLog.Instance.Verbose("LandManager", "end of addLandObject()");
|
|
||||||
return new_land;
|
return new_land;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1703,15 +1703,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void performParcelPrimCountUpdate()
|
public void performParcelPrimCountUpdate()
|
||||||
{
|
{
|
||||||
MainLog.Instance.Verbose("SCENE", "Performing parcel prim count update: resetAllLandPrimCounts()");
|
|
||||||
m_LandManager.resetAllLandPrimCounts();
|
m_LandManager.resetAllLandPrimCounts();
|
||||||
MainLog.Instance.Verbose("SCENE", "Performing parcel prim count update: TriggerParcelPrimCountUpdate()");
|
|
||||||
m_eventManager.TriggerParcelPrimCountUpdate();
|
m_eventManager.TriggerParcelPrimCountUpdate();
|
||||||
MainLog.Instance.Verbose("SCENE", "Performing parcel prim count update: finalizeLandPrimCountUpdate()");
|
|
||||||
m_LandManager.finalizeLandPrimCountUpdate();
|
m_LandManager.finalizeLandPrimCountUpdate();
|
||||||
MainLog.Instance.Verbose("SCENE", "Performing parcel prim count update: landPrimCountTainted = false");
|
|
||||||
m_LandManager.landPrimCountTainted = false;
|
m_LandManager.landPrimCountTainted = false;
|
||||||
MainLog.Instance.Verbose("SCENE", "Performing parcel prim count update: Done");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue