diff options
author | Justin Clark-Casey (justincc) | 2010-08-16 22:21:46 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-25 04:03:11 +0000 |
commit | a6d9c263650cc23d60f941718f87a64aa2f360b2 (patch) | |
tree | 29bdd5df7bae66360e19a38c304e7197b6a55342 /OpenSim/Data/MySQL/MySQLSimulationData.cs | |
parent | Implement dynamic attribute persistence on mysql and mssql (diff) | |
download | opensim-SC_OLD-a6d9c263650cc23d60f941718f87a64aa2f360b2.zip opensim-SC_OLD-a6d9c263650cc23d60f941718f87a64aa2f360b2.tar.gz opensim-SC_OLD-a6d9c263650cc23d60f941718f87a64aa2f360b2.tar.bz2 opensim-SC_OLD-a6d9c263650cc23d60f941718f87a64aa2f360b2.tar.xz |
Encapsulate an OSDMap in DAMap (was DynAttrsOSDMap) rather than inheriting from it
This is the easier way to give us control over locking, rather than asking that OSDMap IDictionary methods be virtual
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLSimulationData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index b7f39fb..e558702 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -1293,9 +1293,9 @@ namespace OpenSim.Data.MySQL | |||
1293 | prim.MediaUrl = (string)row["MediaURL"]; | 1293 | prim.MediaUrl = (string)row["MediaURL"]; |
1294 | 1294 | ||
1295 | if (!(row["DynAttrs"] is System.DBNull)) | 1295 | if (!(row["DynAttrs"] is System.DBNull)) |
1296 | prim.DynAttrs = DynAttrsOSDMap.FromXml((string)row["DynAttrs"]); | 1296 | prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); |
1297 | else | 1297 | else |
1298 | prim.DynAttrs = new DynAttrsOSDMap(); | 1298 | prim.DynAttrs = new DAMap(); |
1299 | 1299 | ||
1300 | return prim; | 1300 | return prim; |
1301 | } | 1301 | } |
@@ -1837,9 +1837,9 @@ namespace OpenSim.Data.MySQL | |||
1837 | s.Media = PrimitiveBaseShape.MediaList.FromXml((string)row["Media"]); | 1837 | s.Media = PrimitiveBaseShape.MediaList.FromXml((string)row["Media"]); |
1838 | 1838 | ||
1839 | if (!(row["DynAttrs"] is System.DBNull)) | 1839 | if (!(row["DynAttrs"] is System.DBNull)) |
1840 | s.DynAttrs = DynAttrsOSDMap.FromXml((string)row["DynAttrs"]); | 1840 | s.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); |
1841 | else | 1841 | else |
1842 | s.DynAttrs = new DynAttrsOSDMap(); | 1842 | s.DynAttrs = new DAMap(); |
1843 | 1843 | ||
1844 | return s; | 1844 | return s; |
1845 | } | 1845 | } |