From 50eab185905897af8a94464402eb942d55d99213 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Thu, 17 Jul 2008 20:58:23 +0000
Subject: need to synchronize the terrain updates
---
OpenSim/Data/NHibernate/NHibernateRegionData.cs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Data')
diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
index fb0a545..2167002 100644
--- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
@@ -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
/// region UUID
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);
+ }
}
///
--
cgit v1.1