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
96d8b4ee
Commit
96d8b4ee
authored
Nov 12, 2009
by
antirez
Browse files
ZSCORE fixed, now returns NULL on missing key or missing element
parent
bbf44ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
96d8b4ee
...
...
@@ -4372,7 +4372,7 @@ static void zscoreCommand(redisClient *c) {
o
=
lookupKeyRead
(
c
->
db
,
c
->
argv
[
1
]);
if
(
o
==
NULL
)
{
addReply
(
c
,
shared
.
czero
);
addReply
(
c
,
shared
.
nullbulk
);
return
;
}
else
{
if
(
o
->
type
!=
REDIS_ZSET
)
{
...
...
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