Do Windlight storage and removal calls in MySQL under m_dbLock, as is done with all the other database calls.

0.7.4-post-fixes
Justin Clark-Casey (justincc) 2012-08-31 00:29:57 +01:00
parent 41d217321d
commit c336309234
1 changed files with 108 additions and 102 deletions

View File

@ -852,6 +852,8 @@ namespace OpenSim.Data.MySQL
} }
public void StoreRegionWindlightSettings(RegionLightShareData wl) public void StoreRegionWindlightSettings(RegionLightShareData wl)
{
lock (m_dbLock)
{ {
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{ {
@ -953,8 +955,11 @@ namespace OpenSim.Data.MySQL
} }
} }
} }
}
public void RemoveRegionWindlightSettings(UUID regionID) public void RemoveRegionWindlightSettings(UUID regionID)
{
lock (m_dbLock)
{ {
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{ {
@ -968,6 +973,7 @@ namespace OpenSim.Data.MySQL
} }
} }
} }
}
#region RegionEnvironmentSettings #region RegionEnvironmentSettings
public string LoadRegionEnvironmentSettings(UUID regionUUID) public string LoadRegionEnvironmentSettings(UUID regionUUID)