mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50: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;
|
||||
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);
|
||||
|
@ -1763,7 +1763,6 @@ proc main {server port} {
|
||||
set rank [$r zrank myzset $ele]
|
||||
if {$rank != $index} {
|
||||
set err "$ele RANK is wrong! ($rank != $index)"
|
||||
exit
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user