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:14:34 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 74c5ee41e -> 5532af972


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

Branch: refs/heads/branch-1.1
Commit: 5532af9727be3dd163056292948a0deddb56ccac
Parents: 74c5ee4
Author: tedyu <yuzhihong@gmail.com>
Authored: Sat Aug 29 02:14:25 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Sat Aug 29 02:14:25 2015 -0700

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


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