aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-07 19:32:21 +0000
committerJustin Clarke Casey2008-07-07 19:32:21 +0000
commit7fa00f9ecdf2ec5d42ebaf411a619e54404e4800 (patch)
tree4df20e35365c1e73dde417ae01111e03a0fa5644 /OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
parent* remove unused CommitAssets() hook for now (diff)
downloadopensim-SC_OLD-7fa00f9ecdf2ec5d42ebaf411a619e54404e4800.zip
opensim-SC_OLD-7fa00f9ecdf2ec5d42ebaf411a619e54404e4800.tar.gz
opensim-SC_OLD-7fa00f9ecdf2ec5d42ebaf411a619e54404e4800.tar.bz2
opensim-SC_OLD-7fa00f9ecdf2ec5d42ebaf411a619e54404e4800.tar.xz
* remove redundant sync locking in AssetServerBase since this is already being done by the lower database layers
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/SQLAssetServer.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/SQLAssetServer.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
index 95696ee..94a8509 100644
--- a/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
+++ b/OpenSim/Framework/Communications/Cache/SQLAssetServer.cs
@@ -78,16 +78,10 @@ namespace OpenSim.Framework.Communications.Cache
78 78
79 protected override AssetBase GetAsset(AssetRequest req) 79 protected override AssetBase GetAsset(AssetRequest req)
80 { 80 {
81 AssetBase asset; 81 return m_assetProvider.FetchAsset(req.AssetID);;
82 lock (m_syncLock)
83 {
84 asset = m_assetProvider.FetchAsset(req.AssetID);
85 }
86
87 return asset;
88 } 82 }
89 83
90 protected override void StoreAsset(AssetBase asset) 84 public override void StoreAsset(AssetBase asset)
91 { 85 {
92 m_assetProvider.CreateAsset(asset); 86 m_assetProvider.CreateAsset(asset);
93 } 87 }