fix consistent hashing, both MD5 and Murmur,

This commit is contained in:
Jonathan Leibiusky
2010-12-02 01:46:31 -03:00
parent c4263b0a2d
commit ad26ea23ad
5 changed files with 107 additions and 62 deletions

View File

@@ -19,10 +19,8 @@ import redis.clients.util.ShardInfo;
import redis.clients.util.Sharded;
public class JedisShardInfo extends ShardInfo<Jedis> {
@Override
public String toString() {
return "JedisShardInfo [host=" + host + ", port=" + port + ", weight="
+ getWeight() + "]";
return host + ":" + port + "*" + getWeight();
}
private int timeout;