aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorSean Dague2007-08-09 21:26:39 +0000
committerSean Dague2007-08-09 21:26:39 +0000
commit0443723ea576b67e3abb0292ebfa8bf4bae974dc (patch)
tree94695b2d26798711fe1e10b4343b7741c058bc45 /OpenSim/Region
parentcompletely untest load prims from db code. Testing shortly (diff)
downloadopensim-SC-0443723ea576b67e3abb0292ebfa8bf4bae974dc.zip
opensim-SC-0443723ea576b67e3abb0292ebfa8bf4bae974dc.tar.gz
opensim-SC-0443723ea576b67e3abb0292ebfa8bf4bae974dc.tar.bz2
opensim-SC-0443723ea576b67e3abb0292ebfa8bf4bae974dc.tar.xz
comment out load from sqlite as this blows up on object creation right now.
must run away on vacation. See you all in a week and change.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs25
1 files changed, 14 insertions, 11 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
index dcf06fe..0cb3bf3 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
@@ -240,6 +240,9 @@ namespace OpenSim.DataStore.MonoSqliteStorage
240 240
241 private SceneObjectPart buildPrim(DataRow row) 241 private SceneObjectPart buildPrim(DataRow row)
242 { 242 {
243 // TODO: this doesn't work yet because something more
244 // interesting has to be done to actually get these values
245 // back out. Not enough time to figure it out yet.
243 SceneObjectPart prim = new SceneObjectPart(); 246 SceneObjectPart prim = new SceneObjectPart();
244 prim.UUID = new LLUUID((string)row["UUID"]); 247 prim.UUID = new LLUUID((string)row["UUID"]);
245 prim.ParentID = (uint)row["ParentID"]; 248 prim.ParentID = (uint)row["ParentID"];
@@ -461,17 +464,17 @@ namespace OpenSim.DataStore.MonoSqliteStorage
461 DataTable shapes = ds.Tables["primshapes"]; 464 DataTable shapes = ds.Tables["primshapes"];
462 465
463 // This only supports 1 prim per SceneObjectGroup. Need to fix later 466 // This only supports 1 prim per SceneObjectGroup. Need to fix later
464 foreach (DataRow primRow in prims.Rows) 467// foreach (DataRow primRow in prims.Rows)
465 { 468// {
466 SceneObjectGroup group = new SceneObjectGroup(); 469// SceneObjectGroup group = new SceneObjectGroup();
467 SceneObjectPart prim = buildPrim(primRow); 470// SceneObjectPart prim = buildPrim(primRow);
468 DataRow shapeRow = shapes.Rows.Find(prim.UUID); 471// DataRow shapeRow = shapes.Rows.Find(prim.UUID);
469 if (shapeRow != null) { 472// if (shapeRow != null) {
470 prim.Shape = buildShape(shapeRow); 473// prim.Shape = buildShape(shapeRow);
471 } 474// }
472 group.Children.Add(prim.UUID, prim); 475// group.Children.Add(prim.UUID, prim);
473 retvals.Add(group); 476// retvals.Add(group);
474 } 477// }
475 478
476 MainLog.Instance.Verbose("DATASTORE", "Sqlite - LoadObjects found " + " objects"); 479 MainLog.Instance.Verbose("DATASTORE", "Sqlite - LoadObjects found " + " objects");
477 480