Fixed critical JedisCluster bug : hlen calls hdel

This commit is contained in:
Jungtaek Lim
2014-08-04 09:28:17 +09:00
parent 4f693872b9
commit d7cd3a0af6

View File

@@ -394,7 +394,7 @@ public class JedisCluster implements JedisCommands, BasicCommands {
maxRedirections) {
@Override
public Long execute(Jedis connection) {
return connection.hdel(key);
return connection.hlen(key);
}
}.run(key);
}