mirror of https://mirror.osredm.com/root/redis.git
ZINCRBY return value fixed
This commit is contained in:
parent
7db723adb2
commit
91d71bfc79
4
redis.c
4
redis.c
|
@ -4278,9 +4278,9 @@ static void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double scor
|
||||||
incrRefCount(ele); /* added to skiplist */
|
incrRefCount(ele); /* added to skiplist */
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
if (doincrement)
|
if (doincrement)
|
||||||
addReply(c,shared.cone);
|
|
||||||
else
|
|
||||||
addReplyDouble(c,*score);
|
addReplyDouble(c,*score);
|
||||||
|
else
|
||||||
|
addReply(c,shared.cone);
|
||||||
} else {
|
} else {
|
||||||
dictEntry *de;
|
dictEntry *de;
|
||||||
double *oldscore;
|
double *oldscore;
|
||||||
|
|
Loading…
Reference in New Issue