mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
preventive conflict resolution to merge pietern/zset-mem
This commit is contained in:
parent
5171777bf1
commit
5ca2f0c498
@ -355,7 +355,8 @@ void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double scoreval, i
|
||||
*score = scoreval;
|
||||
}
|
||||
if (isnan(*score)) {
|
||||
addReplyError(c,"resulting score is not a number (NaN)");
|
||||
addReplySds(c,
|
||||
sdsnew("-ERR resulting score is not a number (NaN)\r\n"));
|
||||
zfree(score);
|
||||
/* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user