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
beb7756d
Commit
beb7756d
authored
Sep 22, 2010
by
antirez
Browse files
error generation format reverted to the new style after merge
parent
b882056c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
beb7756d
...
@@ -327,8 +327,7 @@ void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double score, int
...
@@ -327,8 +327,7 @@ void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double score, int
score
+=
*
(
double
*
)
dictGetEntryVal
(
de
);
score
+=
*
(
double
*
)
dictGetEntryVal
(
de
);
if
(
isnan
(
score
))
{
if
(
isnan
(
score
))
{
addReplySds
(
c
,
addReplyError
(
c
,
"resulting score is not a number (NaN)"
);
sdsnew
(
"-ERR resulting score is not a number (NaN)
\r\n
"
));
/* Note that we don't need to check if the zset may be empty and
/* Note that we don't need to check if the zset may be empty and
* should be removed here, as we can only obtain Nan as score if
* should be removed here, as we can only obtain Nan as score if
* there was already an element in the sorted set. */
* there was already an element in the sorted set. */
...
...
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