diff options
author | Tleiades Hax | 2007-10-17 09:36:11 +0000 |
---|---|---|
committer | Tleiades Hax | 2007-10-17 09:36:11 +0000 |
commit | 44a7db0e44d175fcb854b7bfd11d3b97ed6b934c (patch) | |
tree | 52f6853eb180fbdd998c2019a136c7bdfa03dec4 /OpenSim/Framework/Data.DB4o/DB4oManager.cs | |
parent | this might help with ODE errors. Or maybe not. YMMV (diff) | |
download | opensim-SC-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.zip opensim-SC-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.gz opensim-SC-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.bz2 opensim-SC-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.xz |
Renamed SimProfileData to RegionProfileData
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oManager.cs | 9 |
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 | { |