Optimization fixed and re-activated

This commit is contained in:
antirez
2010-03-18 03:06:08 +01:00
parent bf0da6174c
commit db5946fc27
2 changed files with 21 additions and 3 deletions

View File

@ -1005,11 +1005,9 @@ 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->ptr == o2->ptr) return 1;
o1 = getDecodedObject(o1);
o2 = getDecodedObject(o2);