hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-14258 Addendum fixes case sensitivity in 'load' (Vladimir Rodionov)
Date Sat, 29 Aug 2015 09:13:21 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 5f15583d3 -> 1ca1409a3


HBASE-14258 Addendum fixes case sensitivity in 'load' (Vladimir Rodionov)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1ca1409a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1ca1409a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1ca1409a

Branch: refs/heads/branch-1.2
Commit: 1ca1409a36495605d1c8c30b55b625533244c470
Parents: 5f15583
Author: tedyu <yuzhihong@gmail.com>
Authored: Sat Aug 29 02:13:11 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sat Aug 29 02:13:11 2015 -0700

----------------------------------------------------------------------
 bin/region_mover.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1ca1409a/bin/region_mover.rb
----------------------------------------------------------------------
diff --git a/bin/region_mover.rb b/bin/region_mover.rb
index 03ed1b6..5405541 100644
--- a/bin/region_mover.rb
+++ b/bin/region_mover.rb
@@ -210,9 +210,11 @@ end
 # Return servername that matches passed hostname and port
 def getServerName(servers, hostname, port)
   servername = nil
+  upperCaseHostname = hostname.upcase;
   for server in servers
     hostFromServerName, portFromServerName = getHostPortFromServerName(server)
-    if hostFromServerName == hostname and portFromServerName == port
+    hostFromServerName = hostFromServerName.upcase
+    if hostFromServerName == upperCaseHostname and portFromServerName == port
       servername = server
       break
     end


Mime
View raw message