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:11:42 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 c277166fd -> 861d546b8


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/861d546b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/861d546b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/861d546b

Branch: refs/heads/branch-1
Commit: 861d546b873dedc1cd8703c9daf623ba83f83d1a
Parents: c277166
Author: tedyu <yuzhihong@gmail.com>
Authored: Sat Aug 29 02:11:32 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sat Aug 29 02:11:32 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/861d546b/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