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

@@ -86,7 +86,7 @@ public class RedisInputStream extends FilterInputStream {
throw new JedisException(e);
}
String reply = sb.toString();
if (reply.isEmpty()) {
if (reply.length() == 0) {
throw new JedisException(
"It seems like server has closed the connection.");
}