提交 5e26ae88 编写于 作者: P Pieter Noordhuis

last argument is never encoded for HINCRBY

上级 4005fef1
...@@ -6037,10 +6037,7 @@ static void hincrbyCommand(redisClient *c) { ...@@ -6037,10 +6037,7 @@ static void hincrbyCommand(redisClient *c) {
} }
} }
robj *o_incr = getDecodedObject(c->argv[3]); incr = strtoll(c->argv[3]->ptr, NULL, 10);
incr = strtoll(o_incr->ptr, NULL, 10);
decrRefCount(o_incr);
if (o->encoding == REDIS_ENCODING_ZIPMAP) { if (o->encoding == REDIS_ENCODING_ZIPMAP) {
unsigned char *zm = o->ptr; unsigned char *zm = o->ptr;
unsigned char *zval; unsigned char *zval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册