change sqlitesimulationdata locks a bit

This commit is contained in:
UbitUmarov
2020-11-24 22:58:48 +00:00
parent d008654ae0
commit fe33ace3b2

View File

@@ -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();
}
/***********************************************************************