diff options
author | UbitUmarov | 2016-07-30 21:25:26 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-30 21:25:26 +0100 |
commit | 2826f713d449404fa3908472bb49f4d6515ad048 (patch) | |
tree | 12036323d25628cbfa89815622b34b248b2f7fd4 | |
parent | fix NULL references added in recente changes in standalone mode (diff) | |
download | opensim-SC-2826f713d449404fa3908472bb49f4d6515ad048.zip opensim-SC-2826f713d449404fa3908472bb49f4d6515ad048.tar.gz opensim-SC-2826f713d449404fa3908472bb49f4d6515ad048.tar.bz2 opensim-SC-2826f713d449404fa3908472bb49f4d6515ad048.tar.xz |
stop creating caches on all standalone regions on a single instance ( why are shared modules been created on every scene?? )
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs index 58bd4ea..47792a2 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/LocalGridServiceConnector.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
51 | private static string LogHeader = "[LOCAL GRID SERVICE CONNECTOR]"; | 51 | private static string LogHeader = "[LOCAL GRID SERVICE CONNECTOR]"; |
52 | 52 | ||
53 | private IGridService m_GridService; | 53 | private IGridService m_GridService; |
54 | private RegionInfoCache m_RegionInfoCache = null; | 54 | static private RegionInfoCache m_RegionInfoCache = null; |
55 | 55 | ||
56 | private bool m_Enabled; | 56 | private bool m_Enabled; |
57 | 57 | ||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
95 | 95 | ||
96 | private bool InitialiseService(IConfigSource source, RegionInfoCache ric) | 96 | private bool InitialiseService(IConfigSource source, RegionInfoCache ric) |
97 | { | 97 | { |
98 | if(ric == null) | 98 | if(ric == null && m_RegionInfoCache == null) |
99 | m_RegionInfoCache = new RegionInfoCache(); | 99 | m_RegionInfoCache = new RegionInfoCache(); |
100 | else | 100 | else |
101 | m_RegionInfoCache = ric; | 101 | m_RegionInfoCache = ric; |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs index 21f7567..077eb97 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | |||
@@ -56,7 +56,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
56 | private IGridService m_LocalGridService; | 56 | private IGridService m_LocalGridService; |
57 | private IGridService m_RemoteGridService; | 57 | private IGridService m_RemoteGridService; |
58 | 58 | ||
59 | private RegionInfoCache m_RegionInfoCache = new RegionInfoCache(); | 59 | static private RegionInfoCache m_RegionInfoCache; |
60 | 60 | ||
61 | public RemoteGridServicesConnector() | 61 | public RemoteGridServicesConnector() |
62 | { | 62 | { |
@@ -122,6 +122,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
122 | return false; | 122 | return false; |
123 | } | 123 | } |
124 | 124 | ||
125 | if(m_RegionInfoCache == null) | ||
126 | m_RegionInfoCache = new RegionInfoCache(); | ||
127 | |||
125 | return true; | 128 | return true; |
126 | } | 129 | } |
127 | 130 | ||