mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
reverted an optimization that makes Redis not stable
This commit is contained in:
parent
288799e04a
commit
bf0da6174c
2
redis.c
2
redis.c
@ -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);
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user