Lines Matching refs:sortval

198     robj *sortval, *sortby = NULL, *storekey = NULL;  in sortCommand()  local
202 sortval = lookupKeyRead(c->db,c->argv[1]); in sortCommand()
203 if (sortval && sortval->type != OBJ_SET && in sortCommand()
204 sortval->type != OBJ_LIST && in sortCommand()
205 sortval->type != OBJ_ZSET) in sortCommand()
220 if (sortval) in sortCommand()
221 incrRefCount(sortval); in sortCommand()
223 sortval = createQuicklistObject(); in sortCommand()
283 decrRefCount(sortval); in sortCommand()
295 sortval->type == OBJ_SET && in sortCommand()
305 if (sortval->type == OBJ_ZSET) in sortCommand()
306 zsetConvert(sortval, OBJ_ENCODING_SKIPLIST); in sortCommand()
309 switch(sortval->type) { in sortCommand()
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()
335 if ((sortval->type == OBJ_ZSET || sortval->type == OBJ_LIST) && in sortCommand()
346 if (sortval->type == OBJ_LIST && dontsort) { in sortCommand()
356 li = listTypeInitIterator(sortval, in sortCommand()
357 desc ? (long)(listTypeLength(sortval) - start - 1) : start, in sortCommand()
371 } else if (sortval->type == OBJ_LIST) { in sortCommand()
372 listTypeIterator *li = listTypeInitIterator(sortval,0,LIST_TAIL); in sortCommand()
381 } else if (sortval->type == OBJ_SET) { in sortCommand()
382 setTypeIterator *si = setTypeInitIterator(sortval); in sortCommand()
391 } else if (sortval->type == OBJ_ZSET && dontsort) { in sortCommand()
399 zset *zs = sortval->ptr; in sortCommand()
407 long zsetlen = dictSize(((zset*)sortval->ptr)->dict); in sortCommand()
419 serverAssertWithInfo(c,sortval,ln != NULL); in sortCommand()
430 } else if (sortval->type == OBJ_ZSET) { in sortCommand()
431 dict *set = ((zset*)sortval->ptr)->dict; in sortCommand()
447 serverAssertWithInfo(c,sortval,j == vectorlen); in sortCommand()
480 serverAssertWithInfo(c,sortval,1 != 1); in sortCommand()
529 serverAssertWithInfo(c,sortval,sop->type == SORT_OP_GET); in sortCommand()
560 serverAssertWithInfo(c,sortval,sop->type == SORT_OP_GET); in sortCommand()
583 decrRefCount(sortval); in sortCommand()