Permalink
Browse files

fixed return codes

  • Loading branch information...
1 parent 1b8e727 commit 79c68a6f4d230ce19fce3fb3d1aeb2dbd3ca9d9f @lehmannro committed with Jul 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/redis/com/yahoo/ycsb/db/RedisClient.java
@@ -91,9 +91,9 @@ public int read(String table, String key, Set<String> fields,
public int insert(String table, String key, HashMap<String, String> values) {
if (jedis.hmset(key, values).equals("OK")) {
jedis.zadd(INDEX_KEY, hash(key), key);
- return 1;
+ return 0;
}
- return 0;
+ return 1;
}
@Override

0 comments on commit 79c68a6

Please sign in to comment.