提交 9eb00f21 编写于 作者: A antirez

protocol fix in SORT reply with null elements

上级 fab3a740
......@@ -2772,7 +2772,7 @@ static void sortCommand(redisClient *c) {
if (sop->type == REDIS_SORT_GET) {
if (!val || val->type != REDIS_STRING) {
addReply(c,shared.minus1);
addReply(c,shared.nullbulk);
} else {
addReplySds(c,sdscatprintf(sdsempty(),"$%d\r\n",
sdslen(val->ptr)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册