need to synchronize the terrain updates

0.6.0-stable
Sean Dague 2008-07-17 20:58:23 +00:00
parent 4663999c24
commit 50eab18590
1 changed files with 6 additions and 4 deletions

View File

@ -138,7 +138,7 @@ namespace OpenSim.Data.NHibernate
}
catch (Exception e)
{
m_log.Error("[NHIBERNATE] issue saving asset", e);
m_log.Error("[NHIBERNATE] issue saving prim", e);
}
}
@ -166,7 +166,7 @@ namespace OpenSim.Data.NHibernate
}
catch (Exception e)
{
m_log.Error("[NHIBERNATE] issue saving asset", e);
m_log.Error("[NHIBERNATE] issue saving terrain", e);
}
}
@ -280,8 +280,10 @@ namespace OpenSim.Data.NHibernate
/// <param name="regionID">region UUID</param>
public void StoreTerrain(double[,] ter, LLUUID regionID)
{
Terrain t = new Terrain(regionID, ter);
SaveOrUpdate(t);
lock (this) {
Terrain t = new Terrain(regionID, ter);
SaveOrUpdate(t);
}
}
/// <summary>