HBASE-14258 Addendum fixes case sensitivity in 'load' (Vladimir Rodionov)
This commit is contained in:
parent
0d06d8ddd0
commit
4256128fa2
|
@ -247,9 +247,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
|
||||
|
|
Loading…
Reference in New Issue