]> git.saurik.com Git - redis.git/blobdiff - redis.c
reverted an optimization that makes Redis not stable
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index ec971419f2a178a97eb13a648ea3b863415667c7..9203d1c17066f8f7184da41afd7248215b2e0d16 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1005,9 +1005,11 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1,
     robj *o1 = (robj*) key1, *o2 = (robj*) key2;
     int cmp;
 
+#if 0
     if (o1->encoding == REDIS_ENCODING_INT &&
         o2->encoding == REDIS_ENCODING_INT &&
         o1->ptr == o2->ptr) return 0;
+#endif
 
     o1 = getDecodedObject(o1);
     o2 = getDecodedObject(o2);