diff options
author | Melanie Thielker | 2009-05-10 00:30:51 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-10 00:30:51 +0000 |
commit | 13b2ff83df33fda14d9a8352ed19386913f3c60f (patch) | |
tree | 1112b5545c5e454f62f417e0181238bfb15ca97c /OpenSim/Region | |
parent | COmmitting the asset cache skeleton (diff) | |
download | opensim-SC_OLD-13b2ff83df33fda14d9a8352ed19386913f3c60f.zip opensim-SC_OLD-13b2ff83df33fda14d9a8352ed19386913f3c60f.tar.gz opensim-SC_OLD-13b2ff83df33fda14d9a8352ed19386913f3c60f.tar.bz2 opensim-SC_OLD-13b2ff83df33fda14d9a8352ed19386913f3c60f.tar.xz |
Small asset cache addition. Comment a debug output left in CAPS
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs index 87f3945..17caa9b 100644 --- a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | |||
@@ -44,6 +44,8 @@ namespace OpenSim.Region.CoreModules.Asset | |||
44 | MethodBase.GetCurrentMethod().DeclaringType); | 44 | MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | ||
46 | private bool m_Enabled = false; | 46 | private bool m_Enabled = false; |
47 | private Dictionary<Scene, IAssetService> m_AssetService = | ||
48 | new Dictionary<Scene, IAssetService>(); | ||
47 | 49 | ||
48 | public string Name | 50 | public string Name |
49 | { | 51 | { |
@@ -94,6 +96,15 @@ namespace OpenSim.Region.CoreModules.Asset | |||
94 | 96 | ||
95 | public void RegionLoaded(Scene scene) | 97 | public void RegionLoaded(Scene scene) |
96 | { | 98 | { |
99 | if (!m_Enabled) | ||
100 | return; | ||
101 | |||
102 | m_AssetService[scene] = | ||
103 | scene.RequestModuleInterface<IAssetService>(); | ||
104 | |||
105 | if (m_AssetService[scene] != null) | ||
106 | m_log.InfoFormat("[ASSET CACHE]: Enabled for region {0}", | ||
107 | scene.RegionInfo.RegionName); | ||
97 | } | 108 | } |
98 | } | 109 | } |
99 | } | 110 | } |