mirror of
https://github.com/fluencelabs/redis
synced 2025-03-24 03:20:49 +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;
|
||||
|
||||
if (o1->encoding == REDIS_ENCODING_INT &&
|
||||
o2->encoding == REDIS_ENCODING_INT &&
|
||||
o1->ptr == o2->ptr) return 1;
|
||||
o2->encoding == REDIS_ENCODING_INT)
|
||||
return o1->ptr == o2->ptr;
|
||||
|
||||
o1 = getDecodedObject(o1);
|
||||
o2 = getDecodedObject(o2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user