Nope, that didn't do it - trying lock on performParcelPrimCountUpdate instead
parent
8fbac08fb5
commit
0d8b8d340c
|
@ -896,11 +896,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
#region Load Land
|
#region Load Land
|
||||||
|
|
||||||
private static readonly object _loadAllLAndMutex = new object();
|
|
||||||
public void loadAllLandObjectsFromStorage()
|
public void loadAllLandObjectsFromStorage()
|
||||||
{
|
{
|
||||||
lock (_loadAllLAndMutex)
|
|
||||||
{
|
|
||||||
MainLog.Instance.Verbose("SCENE", "Loading land objects from storage");
|
MainLog.Instance.Verbose("SCENE", "Loading land objects from storage");
|
||||||
List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID);
|
List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(RegionInfo.RegionID);
|
||||||
if (landData.Count == 0)
|
if (landData.Count == 0)
|
||||||
|
@ -911,7 +908,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
m_LandManager.IncomingLandObjectsFromStorage(landData);
|
m_LandManager.IncomingLandObjectsFromStorage(landData);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -1700,15 +1696,19 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
return LLUUID.Zero;
|
return LLUUID.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private readonly const object _performParcelPrimCountUpdateMutex = new object();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void performParcelPrimCountUpdate()
|
public void performParcelPrimCountUpdate()
|
||||||
{
|
{
|
||||||
m_LandManager.resetAllLandPrimCounts();
|
lock (performParcelPrimCountUpdate)
|
||||||
m_eventManager.TriggerParcelPrimCountUpdate();
|
{
|
||||||
m_LandManager.finalizeLandPrimCountUpdate();
|
m_LandManager.resetAllLandPrimCounts();
|
||||||
m_LandManager.landPrimCountTainted = false;
|
m_eventManager.TriggerParcelPrimCountUpdate();
|
||||||
|
m_LandManager.finalizeLandPrimCountUpdate();
|
||||||
|
m_LandManager.landPrimCountTainted = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue