Lines Matching refs:vectorlen
194 int j, dontsort = 0, vectorlen; in sortCommand() local
310 case OBJ_LIST: vectorlen = listTypeLength(sortval); break; in sortCommand()
311 case OBJ_SET: vectorlen = setTypeSize(sortval); break; in sortCommand()
312 case OBJ_ZSET: vectorlen = dictSize(((zset*)sortval->ptr)->dict); break; in sortCommand()
313 default: vectorlen = 0; serverPanic("Bad SORT type"); /* Avoid GCC warning */ in sortCommand()
318 end = (limit_count < 0) ? vectorlen-1 : start+limit_count-1; in sortCommand()
319 if (start >= vectorlen) { in sortCommand()
320 start = vectorlen-1; in sortCommand()
321 end = vectorlen-2; in sortCommand()
323 if (end >= vectorlen) end = vectorlen-1; in sortCommand()
337 (start != 0 || end != vectorlen-1)) in sortCommand()
339 vectorlen = end-start+1; in sortCommand()
343 vector = zmalloc(sizeof(redisSortObject)*vectorlen); in sortCommand()
360 while(j < vectorlen && listTypeNext(li,&entry)) { in sortCommand()
403 int rangelen = vectorlen; in sortCommand()
447 serverAssertWithInfo(c,sortval,j == vectorlen); in sortCommand()
451 for (j = 0; j < vectorlen; j++) { in sortCommand()
495 if (sortby && (start != 0 || end != vectorlen-1)) in sortCommand()
496 pqsort(vector,vectorlen,sizeof(redisSortObject),sortCompare, start,end); in sortCommand()
498 qsort(vector,vectorlen,sizeof(redisSortObject),sortCompare); in sortCommand()
580 for (j = 0; j < vectorlen; j++) in sortCommand()
585 for (j = 0; j < vectorlen; j++) { in sortCommand()