aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/GridService.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-02 00:52:48 +0100
committerJustin Clark-Casey (justincc)2011-08-02 00:52:48 +0100
commit17e9d61f4383627434b7b8249cea1a487f001099 (patch)
treedb497607c82b32e8567f1a5ff36ca85250c3a225 /OpenSim/Services/GridService/GridService.cs
parentRevert "In GridService, have GetRegionByName() call GetRegionsByName() with a... (diff)
downloadopensim-SC_OLD-17e9d61f4383627434b7b8249cea1a487f001099.zip
opensim-SC_OLD-17e9d61f4383627434b7b8249cea1a487f001099.tar.gz
opensim-SC_OLD-17e9d61f4383627434b7b8249cea1a487f001099.tar.bz2
opensim-SC_OLD-17e9d61f4383627434b7b8249cea1a487f001099.tar.xz
Change GridService.GetRegionByName() to only return info if there is an exact region name match, unlike GetRegionsByName()
This should fix the first part of http://opensimulator.org/mantis/view.php?id=5606, and maybe 5605. Thanks to Melanie for helping with this.
Diffstat (limited to 'OpenSim/Services/GridService/GridService.cs')
-rw-r--r--OpenSim/Services/GridService/GridService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 985d77b..a6fbc00 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -322,7 +322,7 @@ namespace OpenSim.Services.GridService
322 322
323 public GridRegion GetRegionByName(UUID scopeID, string regionName) 323 public GridRegion GetRegionByName(UUID scopeID, string regionName)
324 { 324 {
325 List<RegionData> rdatas = m_Database.Get(regionName + "%", scopeID); 325 List<RegionData> rdatas = m_Database.Get(regionName, scopeID);
326 if ((rdatas != null) && (rdatas.Count > 0)) 326 if ((rdatas != null) && (rdatas.Count > 0))
327 return RegionData2RegionInfo(rdatas[0]); // get the first 327 return RegionData2RegionInfo(rdatas[0]); // get the first
328 328