Commit 91d71bfc authored by antirez's avatar antirez
Browse files

ZINCRBY return value fixed

parent 7db723ad
...@@ -4278,9 +4278,9 @@ static void zaddGenericCommand(redisClient *c, robj *key, robj *ele, double scor ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment