reverted an optimization that makes Redis not stable

This commit is contained in:
antirez 2010-03-18 02:59:28 +01:00
parent 288799e04a
commit bf0da6174c
2 changed files with 2 additions and 1 deletions

View File

@ -1005,9 +1005,11 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1,
robj *o1 = (robj*) key1, *o2 = (robj*) key2; robj *o1 = (robj*) key1, *o2 = (robj*) key2;
int cmp; int cmp;
#if 0
if (o1->encoding == REDIS_ENCODING_INT && if (o1->encoding == REDIS_ENCODING_INT &&
o2->encoding == REDIS_ENCODING_INT && o2->encoding == REDIS_ENCODING_INT &&
o1->ptr == o2->ptr) return 0; o1->ptr == o2->ptr) return 0;
#endif
o1 = getDecodedObject(o1); o1 = getDecodedObject(o1);
o2 = getDecodedObject(o2); o2 = getDecodedObject(o2);

View File

@ -1763,7 +1763,6 @@ proc main {server port} {
set rank [$r zrank myzset $ele] set rank [$r zrank myzset $ele]
if {$rank != $index} { if {$rank != $index} {
set err "$ele RANK is wrong! ($rank != $index)" set err "$ele RANK is wrong! ($rank != $index)"
exit
break break
} }
} }