aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-01-21 15:06:49 +0000
committerJustin Clarke Casey2008-01-21 15:06:49 +0000
commit504ae63669e5c57cd89e8213b853c27506012f79 (patch)
tree0d12e5baa7b7e5ec29676398629e56f3c93b98d5 /OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
parentSmall bug in ResetScript (diff)
downloadopensim-SC-504ae63669e5c57cd89e8213b853c27506012f79.zip
opensim-SC-504ae63669e5c57cd89e8213b853c27506012f79.tar.gz
opensim-SC-504ae63669e5c57cd89e8213b853c27506012f79.tar.bz2
opensim-SC-504ae63669e5c57cd89e8213b853c27506012f79.tar.xz
* Make object persistence more granular by separating prim and prim inventory persistence
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs')
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs19
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"];