mirror of
https://github.com/fluencelabs/redis
synced 2025-03-26 04:11:04 +00:00
better use of encoding inforamtion in dictEncObjKeyCompare
This commit is contained in:
parent
1b67773229
commit
dc05abde89
4
redis.c
4
redis.c
@ -1104,8 +1104,8 @@ static int dictEncObjKeyCompare(void *privdata, const void *key1,
|
|||||||
int cmp;
|
int cmp;
|
||||||
|
|
||||||
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 1;
|
return o1->ptr == o2->ptr;
|
||||||
|
|
||||||
o1 = getDecodedObject(o1);
|
o1 = getDecodedObject(o1);
|
||||||
o2 = getDecodedObject(o2);
|
o2 = getDecodedObject(o2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user