mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
hopefully resolve mantis issue #10 by locking correcty around terrain methods
This commit is contained in:
@@ -262,6 +262,7 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||||||
|
|
||||||
public void StoreTerrain(double[,] ter, LLUUID regionID)
|
public void StoreTerrain(double[,] ter, LLUUID regionID)
|
||||||
{
|
{
|
||||||
|
lock (ds) {
|
||||||
int revision = Util.UnixTimeSinceEpoch();
|
int revision = Util.UnixTimeSinceEpoch();
|
||||||
|
|
||||||
// the following is an work around for .NET. The perf
|
// the following is an work around for .NET. The perf
|
||||||
@@ -281,9 +282,11 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||||||
}
|
}
|
||||||
conn.Close();
|
conn.Close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public double[,] LoadTerrain(LLUUID regionID)
|
public double[,] LoadTerrain(LLUUID regionID)
|
||||||
{
|
{
|
||||||
|
lock (ds) {
|
||||||
double[,] terret = new double[256,256];
|
double[,] terret = new double[256,256];
|
||||||
terret.Initialize();
|
terret.Initialize();
|
||||||
// the following is an work around for .NET. The perf
|
// the following is an work around for .NET. The perf
|
||||||
@@ -327,6 +330,7 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||||||
conn.Close();
|
conn.Close();
|
||||||
return terret;
|
return terret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void RemoveLandObject(uint id)
|
public void RemoveLandObject(uint id)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user