提交 bf0da617 编写于 作者: A antirez

reverted an optimization that makes Redis not stable

上级 288799e0
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册