aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.DB4o/DB4oManager.cs
diff options
context:
space:
mode:
authorTleiades Hax2007-10-17 09:36:11 +0000
committerTleiades Hax2007-10-17 09:36:11 +0000
commit44a7db0e44d175fcb854b7bfd11d3b97ed6b934c (patch)
tree52f6853eb180fbdd998c2019a136c7bdfa03dec4 /OpenSim/Framework/Data.DB4o/DB4oManager.cs
parentthis might help with ODE errors. Or maybe not. YMMV (diff)
downloadopensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.zip
opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.gz
opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.bz2
opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.xz
Renamed SimProfileData to RegionProfileData
Diffstat (limited to 'OpenSim/Framework/Data.DB4o/DB4oManager.cs')
-rw-r--r--OpenSim/Framework/Data.DB4o/DB4oManager.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oManager.cs b/OpenSim/Framework/Data.DB4o/DB4oManager.cs
index 224b842..10c8490 100644
--- a/OpenSim/Framework/Data.DB4o/DB4oManager.cs
+++ b/OpenSim/Framework/Data.DB4o/DB4oManager.cs
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Data.DB4o
41 /// <summary> 41 /// <summary>
42 /// A list of the current regions connected (in-memory cache) 42 /// A list of the current regions connected (in-memory cache)
43 /// </summary> 43 /// </summary>
44 public Dictionary<LLUUID, SimProfileData> simProfiles = new Dictionary<LLUUID, SimProfileData>(); 44 public Dictionary<LLUUID, RegionProfileData> simProfiles = new Dictionary<LLUUID, RegionProfileData>();
45 /// <summary> 45 /// <summary>
46 /// Database File Name 46 /// Database File Name
47 /// </summary> 47 /// </summary>
@@ -56,9 +56,10 @@ namespace OpenSim.Framework.Data.DB4o
56 dbfl = db4odb; 56 dbfl = db4odb;
57 IObjectContainer database; 57 IObjectContainer database;
58 database = Db4oFactory.OpenFile(dbfl); 58 database = Db4oFactory.OpenFile(dbfl);
59 IObjectSet result = database.Get(typeof(SimProfileData)); 59 IObjectSet result = database.Get(typeof(RegionProfileData));
60 // Loads the file into the in-memory cache 60 // Loads the file into the in-memory cache
61 foreach(SimProfileData row in result) { 61 foreach (RegionProfileData row in result)
62 {
62 simProfiles.Add(row.UUID, row); 63 simProfiles.Add(row.UUID, row);
63 } 64 }
64 database.Close(); 65 database.Close();
@@ -69,7 +70,7 @@ namespace OpenSim.Framework.Data.DB4o
69 /// </summary> 70 /// </summary>
70 /// <param name="row">The profile to add</param> 71 /// <param name="row">The profile to add</param>
71 /// <returns>Successful?</returns> 72 /// <returns>Successful?</returns>
72 public bool AddRow(SimProfileData row) 73 public bool AddRow(RegionProfileData row)
73 { 74 {
74 if (simProfiles.ContainsKey(row.UUID)) 75 if (simProfiles.ContainsKey(row.UUID))
75 { 76 {