diff options
author | Justin Clark-Casey (justincc) | 2011-08-02 00:52:48 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-02 00:52:48 +0100 |
commit | 17e9d61f4383627434b7b8249cea1a487f001099 (patch) | |
tree | db497607c82b32e8567f1a5ff36ca85250c3a225 /OpenSim/Services/GridService/GridService.cs | |
parent | Revert "In GridService, have GetRegionByName() call GetRegionsByName() with a... (diff) | |
download | opensim-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.cs | 2 |
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 | ||