diff options
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs index 1364d3e..76848cf 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | |||
@@ -1248,22 +1248,15 @@ namespace OpenSim.Framework.Data.SQLite | |||
1248 | { | 1248 | { |
1249 | fillShapeRow(shapeRow, prim); | 1249 | fillShapeRow(shapeRow, prim); |
1250 | } | 1250 | } |
1251 | |||
1252 | if (persistPrimInventories) | ||
1253 | { | ||
1254 | addPrimInventory(prim.UUID, prim.TaskInventory); | ||
1255 | } | ||
1256 | } | 1251 | } |
1257 | 1252 | ||
1258 | /// <summary> | 1253 | // see IRegionDatastore |
1259 | /// Persist prim inventory. Deletes, updates and inserts rows. | 1254 | public void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items) |
1260 | /// </summary> | ||
1261 | /// <param name="primID"></param> | ||
1262 | /// <param name="items"></param> | ||
1263 | /// <returns></returns> | ||
1264 | private void addPrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items) | ||
1265 | { | 1255 | { |
1266 | MainLog.Instance.Verbose("DATASTORE", "Entered addPrimInventory with prim ID {0}", primID); | 1256 | if (!persistPrimInventories) |
1257 | return; | ||
1258 | |||
1259 | MainLog.Instance.Verbose("DATASTORE", "Entered StorePrimInventory with prim ID {0}", primID); | ||
1267 | 1260 | ||
1268 | // Find all existing inventory rows for this prim | 1261 | // Find all existing inventory rows for this prim |
1269 | DataTable dbItems = ds.Tables["primitems"]; | 1262 | DataTable dbItems = ds.Tables["primitems"]; |