mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
change sqlitesimulationdata locks a bit
This commit is contained in:
@@ -597,9 +597,8 @@ namespace OpenSim.Data.SQLite
|
||||
// Remove prim row
|
||||
row.Delete();
|
||||
}
|
||||
Commit();
|
||||
}
|
||||
|
||||
Commit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -947,8 +946,8 @@ namespace OpenSim.Data.SQLite
|
||||
{
|
||||
rowsToDelete[iter].Delete();
|
||||
}
|
||||
Commit();
|
||||
}
|
||||
Commit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1000,9 +999,8 @@ namespace OpenSim.Data.SQLite
|
||||
fillLandAccessRow(newAccessRow, entry, parcel.LandData.GlobalID);
|
||||
landaccesslist.Rows.Add(newAccessRow);
|
||||
}
|
||||
Commit();
|
||||
}
|
||||
|
||||
Commit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1041,7 +1039,7 @@ namespace OpenSim.Data.SQLite
|
||||
public void Commit()
|
||||
{
|
||||
// m_log.Debug("[SQLITE]: Starting commit");
|
||||
lock (ds)
|
||||
//lock (ds) caller must lock
|
||||
{
|
||||
primDa.Update(ds, "prims");
|
||||
shapeDa.Update(ds, "primshapes");
|
||||
@@ -1071,7 +1069,8 @@ namespace OpenSim.Data.SQLite
|
||||
/// </summary>
|
||||
public void Shutdown()
|
||||
{
|
||||
Commit();
|
||||
lock(ds)
|
||||
Commit();
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
@@ -2510,9 +2509,8 @@ namespace OpenSim.Data.SQLite
|
||||
fillItemRow(newItemRow, newItem);
|
||||
dbItems.Rows.Add(newItemRow);
|
||||
}
|
||||
Commit();
|
||||
}
|
||||
|
||||
Commit();
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user