hopefully resolve mantis issue #10 by locking correcty around terrain methods
parent
34fa2a4db4
commit
2fdca28dd4
|
@ -262,6 +262,7 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||
|
||||
public void StoreTerrain(double[,] ter, LLUUID regionID)
|
||||
{
|
||||
lock (ds) {
|
||||
int revision = Util.UnixTimeSinceEpoch();
|
||||
|
||||
// the following is an work around for .NET. The perf
|
||||
|
@ -281,9 +282,11 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||
}
|
||||
conn.Close();
|
||||
}
|
||||
}
|
||||
|
||||
public double[,] LoadTerrain(LLUUID regionID)
|
||||
{
|
||||
lock (ds) {
|
||||
double[,] terret = new double[256,256];
|
||||
terret.Initialize();
|
||||
// the following is an work around for .NET. The perf
|
||||
|
@ -327,6 +330,7 @@ namespace OpenSim.DataStore.MonoSqlite
|
|||
conn.Close();
|
||||
return terret;
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveLandObject(uint id)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue