aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/GridService.cs
diff options
context:
space:
mode:
authorDiva Canto2010-01-24 16:00:28 -0800
committerDiva Canto2010-01-24 16:00:28 -0800
commit8ddf787cfd090fc8f2715a6f2a5329348a12e28b (patch)
tree84e88a8f2b6e72b89182b8afa4ef5747083bb04e /OpenSim/Services/GridService/GridService.cs
parentSome method implementations were missing from LocalGridServiceConnector. (diff)
downloadopensim-SC_OLD-8ddf787cfd090fc8f2715a6f2a5329348a12e28b.zip
opensim-SC_OLD-8ddf787cfd090fc8f2715a6f2a5329348a12e28b.tar.gz
opensim-SC_OLD-8ddf787cfd090fc8f2715a6f2a5329348a12e28b.tar.bz2
opensim-SC_OLD-8ddf787cfd090fc8f2715a6f2a5329348a12e28b.tar.xz
Hypergrid map search back on, this time with a config var in the grid service.
Diffstat (limited to 'OpenSim/Services/GridService/GridService.cs')
-rw-r--r--OpenSim/Services/GridService/GridService.cs20
1 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index b86fd4d..515d620 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -54,6 +54,7 @@ namespace OpenSim.Services.GridService
54 54
55 protected IAuthenticationService m_AuthenticationService = null; 55 protected IAuthenticationService m_AuthenticationService = null;
56 protected bool m_AllowDuplicateNames = false; 56 protected bool m_AllowDuplicateNames = false;
57 protected bool m_AllowHypergridMapSearch = false;
57 58
58 public GridService(IConfigSource config) 59 public GridService(IConfigSource config)
59 : base(config) 60 : base(config)
@@ -74,6 +75,7 @@ namespace OpenSim.Services.GridService
74 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); 75 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args);
75 } 76 }
76 m_AllowDuplicateNames = gridConfig.GetBoolean("AllowDuplicateNames", m_AllowDuplicateNames); 77 m_AllowDuplicateNames = gridConfig.GetBoolean("AllowDuplicateNames", m_AllowDuplicateNames);
78 m_AllowHypergridMapSearch = gridConfig.GetBoolean("AllowHypergridMapSearch", m_AllowHypergridMapSearch);
77 } 79 }
78 80
79 if (m_RootInstance == null) 81 if (m_RootInstance == null)
@@ -327,6 +329,13 @@ namespace OpenSim.Services.GridService
327 } 329 }
328 } 330 }
329 331
332 if (m_AllowHypergridMapSearch && rdatas.Count == 0 && name.Contains("."))
333 {
334 GridRegion r = m_HypergridLinker.LinkRegion(scopeID, name);
335 if (r != null)
336 rinfos.Add(r);
337 }
338
330 return rinfos; 339 return rinfos;
331 } 340 }
332 341
@@ -410,9 +419,14 @@ namespace OpenSim.Services.GridService
410 { 419 {
411 RegionData region = m_Database.Get(regionID, scopeID); 420 RegionData region = m_Database.Get(regionID, scopeID);
412 421
413 int flags = Convert.ToInt32(region.Data["flags"]); 422 if (region != null)
414 //m_log.DebugFormat("[GRID SERVICE]: Request for flags of {0}: {1}", regionID, flags); 423 {
415 return flags; 424 int flags = Convert.ToInt32(region.Data["flags"]);
425 //m_log.DebugFormat("[GRID SERVICE]: Request for flags of {0}: {1}", regionID, flags);
426 return flags;
427 }
428 else
429 return -1;
416 } 430 }
417 431
418 private void HandleShowRegion(string module, string[] cmd) 432 private void HandleShowRegion(string module, string[] cmd)