zrange now starts to work. zadd still does not support update and will crash or leak or b000mmmmm

This commit is contained in:
antirez 2009-10-23 22:39:25 +02:00
parent cc81236105
commit 0aad7a1938

View File

@ -3865,7 +3865,7 @@ static void zrangeCommand(redisClient *c) {
addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",rangelen)); addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",rangelen));
for (j = 0; j < rangelen; j++) { for (j = 0; j < rangelen; j++) {
ele = ln->forward[0]->obj; ele = ln->obj;
addReplyBulkLen(c,ele); addReplyBulkLen(c,ele);
addReply(c,ele); addReply(c,ele);
addReply(c,shared.crlf); addReply(c,shared.crlf);