Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dc05abde
Commit
dc05abde
authored
May 11, 2010
by
antirez
Browse files
better use of encoding inforamtion in dictEncObjKeyCompare
parent
1b677732
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
dc05abde
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment