diff options
author | Mike Mazur | 2009-02-17 01:36:44 +0000 |
---|---|---|
committer | Mike Mazur | 2009-02-17 01:36:44 +0000 |
commit | 76c0935ec744f2d230489398f879eb7f42b11d37 (patch) | |
tree | a68253554e3899f10b6c341db369ce4a029dfaa5 /OpenSim/Framework/Communications/Cache/FileAssetClient.cs | |
parent | Major change to how appearance is managed, including changes in login and use... (diff) | |
download | opensim-SC_OLD-76c0935ec744f2d230489398f879eb7f42b11d37.zip opensim-SC_OLD-76c0935ec744f2d230489398f879eb7f42b11d37.tar.gz opensim-SC_OLD-76c0935ec744f2d230489398f879eb7f42b11d37.tar.bz2 opensim-SC_OLD-76c0935ec744f2d230489398f879eb7f42b11d37.tar.xz |
- remove the Metadata property from AssetBase and return all previous
properties as before
- prefix private variables with m_ in AssetBase.cs
- related to Mantis #3122, as mentioned in
https://lists.berlios.de/pipermail/opensim-dev/2009-February/005088.html
- all services will likely need to be upgraded after this commit
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/FileAssetClient.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/FileAssetClient.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/FileAssetClient.cs b/OpenSim/Framework/Communications/Cache/FileAssetClient.cs index e6574a1..8d03f56 100644 --- a/OpenSim/Framework/Communications/Cache/FileAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/FileAssetClient.cs | |||
@@ -79,7 +79,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
79 | 79 | ||
80 | public override void StoreAsset(AssetBase asset) | 80 | public override void StoreAsset(AssetBase asset) |
81 | { | 81 | { |
82 | byte[] idBytes = asset.Metadata.FullID.Guid.ToByteArray(); | 82 | byte[] idBytes = asset.FullID.Guid.ToByteArray(); |
83 | 83 | ||
84 | string cdir = m_dir + Path.DirectorySeparatorChar + idBytes[0] | 84 | string cdir = m_dir + Path.DirectorySeparatorChar + idBytes[0] |
85 | + Path.DirectorySeparatorChar + idBytes[1]; | 85 | + Path.DirectorySeparatorChar + idBytes[1]; |
@@ -90,7 +90,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
90 | if (!Directory.Exists(cdir)) | 90 | if (!Directory.Exists(cdir)) |
91 | Directory.CreateDirectory(cdir); | 91 | Directory.CreateDirectory(cdir); |
92 | 92 | ||
93 | FileStream x = new FileStream(cdir + Path.DirectorySeparatorChar + asset.Metadata.FullID + ".xml", FileMode.Create); | 93 | FileStream x = new FileStream(cdir + Path.DirectorySeparatorChar + asset.FullID + ".xml", FileMode.Create); |
94 | m_xs.Serialize(x, asset); | 94 | m_xs.Serialize(x, asset); |
95 | 95 | ||
96 | x.Flush(); | 96 | x.Flush(); |