HBASE-4074 When a RS has hostname with uppercase letter, there are two RS entries in master -- addendum

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1144004 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-07-07 19:48:05 +00:00
parent 1e90b73574
commit ee97af7842
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ public class ServerName implements Comparable<ServerName> {
@Override @Override
public int compareTo(ServerName other) { public int compareTo(ServerName other) {
int compare = this.getHostname().compareTo(other.getHostname()); int compare = this.getHostname().toLowerCase().
compareTo(other.getHostname().toLowerCase());
if (compare != 0) return compare; if (compare != 0) return compare;
compare = this.getPort() - other.getPort(); compare = this.getPort() - other.getPort();
if (compare != 0) return compare; if (compare != 0) return compare;