From 8db2ddb07f593b0fe86e37d232a89f02144b0fa9 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 18 Jan 2020 21:09:41 +0000 Subject: [PATCH] mantis 8645: change sqlite to just flag row delete, for commit to work --- OpenSim/Data/SQLite/SQLiteSimulationData.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index 1a86fdee84..b8e14eecd5 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs @@ -1057,10 +1057,10 @@ namespace OpenSim.Data.SQLite if (rowToCheck["LandUUID"].ToString() == parcel.LandData.GlobalID.ToString()) rowsToDelete.Add(rowToCheck); } - for (int iter = 0; iter < rowsToDelete.Count; iter++) - landaccesslist.Rows.Remove(rowsToDelete[iter]); + for (int iter = 0; iter < rowsToDelete.Count; ++iter) + rowsToDelete[iter].Delete(); + - rowsToDelete.Clear(); foreach (LandAccessEntry entry in parcel.LandData.ParcelAccessList) { DataRow newAccessRow = landaccesslist.NewRow();