From c07c46c14713aa5110f739768c30df29e37afd5f Mon Sep 17 00:00:00 2001 From: "Huaiyu (Kitty) Liu" Date: Mon, 2 May 2011 16:48:25 -0700 Subject: [PATCH] For debugging shape not sync'ed properly problem: adding back debug messages in CompareHashedValue_UpdateByLocal HandleUpdatedPrimProperties --- .../SymmetricSync/RegionSyncModule.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/CoreModules/RegionSync/RegionSyncModule/SymmetricSync/RegionSyncModule.cs b/OpenSim/Region/CoreModules/RegionSync/RegionSyncModule/SymmetricSync/RegionSyncModule.cs index aa0b3f07c4..4ad2d6d500 100644 --- a/OpenSim/Region/CoreModules/RegionSync/RegionSyncModule/SymmetricSync/RegionSyncModule.cs +++ b/OpenSim/Region/CoreModules/RegionSync/RegionSyncModule/SymmetricSync/RegionSyncModule.cs @@ -2409,7 +2409,7 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule if (propertiesSyncInfo.Count>0) { //SYNC DEBUG - /* + string pString = ""; foreach (PropertySyncInfo p in propertiesSyncInfo) { @@ -2417,10 +2417,10 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule if (p.Property == SceneObjectPartSyncProperties.Shape) { PrimitiveBaseShape shape = PropertySerializer.DeSerializeShape((String)p.LastUpdateValue); - m_log.DebugFormat("Shaped changed on SOP {0}, {1} to ProfileShape {2}", sop.Name, sop.UUID, shape.ProfileShape); + m_log.DebugFormat("Shape changed on SOP {0}, {1} to ProfileShape {2}", sop.Name, sop.UUID, shape.ProfileShape); } } - * */ + //m_log.DebugFormat("ms {0}: HandleUpdatedPrimProperties, for prim {1},{2} with updated properties -- {3}", DateTime.Now.Millisecond, sop.Name, sop.UUID, pString); @@ -6570,10 +6570,11 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule if (shapeVal != null) { part.Shape = shapeVal; - + /* String hashedShape = Util.Md5Hash((PropertySerializer.SerializeShape(part))); - DebugLog.DebugFormat("prim type of SOP {0}, {1}, changed, hashed shape = {2} in SOP, = {3} in PrimSyncInfoManager", + DebugLog.DebugFormat("Shape of SOP {0}, {1}, changed, hashed shape = {2} in SOP, = {3} in PrimSyncInfoManager", part.Name, part.UUID, hashedShape, pSyncInfo.LastUpdateValueHash); + * */ } else