aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-09-03 02:10:07 +0100
committerUbitUmarov2019-09-03 02:10:07 +0100
commitfd252b12858b0c8675307bec1fa2ef41a8fbf708 (patch)
tree4843c7fe58409bcbf4b13f525a596a7cf384ac93
parentmissing file (diff)
downloadopensim-SC-fd252b12858b0c8675307bec1fa2ef41a8fbf708.zip
opensim-SC-fd252b12858b0c8675307bec1fa2ef41a8fbf708.tar.gz
opensim-SC-fd252b12858b0c8675307bec1fa2ef41a8fbf708.tar.bz2
opensim-SC-fd252b12858b0c8675307bec1fa2ef41a8fbf708.tar.xz
add a little more debug for now
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs25
1 files changed, 21 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
index cd67d88..e09f55c 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
@@ -257,11 +257,18 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
257 return rinfo; // invalid 257 return rinfo; // invalid
258 if (!m_ThisGatekeeperHost.Equals(regionHost, StringComparison.InvariantCultureIgnoreCase) && !m_ThisGatekeeperIP.Equals(regionHost)) 258 if (!m_ThisGatekeeperHost.Equals(regionHost, StringComparison.InvariantCultureIgnoreCase) && !m_ThisGatekeeperIP.Equals(regionHost))
259 return rinfo; // not local grid 259 return rinfo; // not local grid
260 if (String.IsNullOrEmpty(regionName))
261 return m_RemoteGridService.GetDefaultRegions(scopeID)[0];
262 } 260 }
263 261
264 rinfo = m_RemoteGridService.GetRegionByName(scopeID, regionName); 262 if (String.IsNullOrEmpty(regionName))
263 {
264 rinfo = m_RemoteGridService.GetDefaultRegions(UUID.Zero)[0];
265 if (rinfo == null)
266 m_log.Warn("[REMOTE GRID CONNECTOR] returned null default region");
267 else
268 m_log.WarnFormat("[REMOTE GRID CONNECTOR] returned default region {0}", rinfo.RegionName);
269 }
270 else
271 rinfo = m_RemoteGridService.GetRegionByName(scopeID, regionName);
265 m_RegionInfoCache.Cache(scopeID, rinfo); 272 m_RegionInfoCache.Cache(scopeID, rinfo);
266 return rinfo; 273 return rinfo;
267 } 274 }
@@ -290,7 +297,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
290 297
291 List<GridRegion> grinfo = null; 298 List<GridRegion> grinfo = null;
292 if (String.IsNullOrEmpty(regionName)) 299 if (String.IsNullOrEmpty(regionName))
293 grinfo = m_RemoteGridService.GetDefaultRegions(scopeID); 300 {
301 List<GridRegion> grinfos = m_RemoteGridService.GetDefaultRegions(UUID.Zero);
302 if (grinfos == null)
303 m_log.Warn("[REMOTE GRID CONNECTOR] returned null default regions");
304 else
305 {
306 m_log.WarnFormat("[REMOTE GRID CONNECTOR] returned default regions {0}, ...", grinfos[0].RegionName);
307 // only return first
308 grinfo = new List<GridRegion>(){grinfos[0]};
309 }
310 }
294 else 311 else
295 grinfo = m_RemoteGridService.GetRegionsByName(scopeID, regionName, maxNumber); 312 grinfo = m_RemoteGridService.GetRegionsByName(scopeID, regionName, maxNumber);
296 313