Lines Matching refs:zs
1094 zset *zs; in zsetConvert() local
1110 zs = zmalloc(sizeof(*zs)); in zsetConvert()
1111 zs->dict = dictCreate(&zsetDictType,NULL); in zsetConvert()
1112 zs->zsl = zslCreate(); in zsetConvert()
1128 node = zslInsert(zs->zsl,score,ele); in zsetConvert()
1129 serverAssertWithInfo(NULL,zobj,dictAdd(zs->dict,ele,&node->score) == DICT_OK); in zsetConvert()
1135 zobj->ptr = zs; in zsetConvert()
1145 zs = zobj->ptr; in zsetConvert()
1146 dictRelease(zs->dict); in zsetConvert()
1147 node = zs->zsl->header->level[0].forward; in zsetConvert()
1148 zfree(zs->zsl->header); in zsetConvert()
1149 zfree(zs->zsl); in zsetConvert()
1161 zfree(zs); in zsetConvert()
1191 zset *zs = zobj->ptr; in zsetScore() local
1192 dictEntry *de = dictFind(zs->dict, member); in zsetScore()
1336 zset *zs = zobj->ptr; in zaddGenericCommand() local
1342 de = dictFind(zs->dict,ele); in zaddGenericCommand()
1362 serverAssertWithInfo(c,curobj,zslDelete(zs->zsl,curscore,curobj)); in zaddGenericCommand()
1363 znode = zslInsert(zs->zsl,score,curobj); in zaddGenericCommand()
1371 znode = zslInsert(zs->zsl,score,ele); in zaddGenericCommand()
1373 serverAssertWithInfo(c,NULL,dictAdd(zs->dict,ele,&znode->score) == DICT_OK); in zaddGenericCommand()
1434 zset *zs = zobj->ptr; in zremCommand() local
1439 de = dictFind(zs->dict,c->argv[j]); in zremCommand()
1445 serverAssertWithInfo(c,c->argv[j],zslDelete(zs->zsl,score,c->argv[j])); in zremCommand()
1448 dictDelete(zs->dict,c->argv[j]); in zremCommand()
1449 if (htNeedsResize(zs->dict)) dictResize(zs->dict); in zremCommand()
1450 if (dictSize(zs->dict) == 0) { in zremCommand()
1539 zset *zs = zobj->ptr; in zremrangeGenericCommand() local
1542 deleted = zslDeleteRangeByRank(zs->zsl,start+1,end+1,zs->dict); in zremrangeGenericCommand()
1545 deleted = zslDeleteRangeByScore(zs->zsl,&range,zs->dict); in zremrangeGenericCommand()
1548 deleted = zslDeleteRangeByLex(zs->zsl,&lexrange,zs->dict); in zremrangeGenericCommand()
1551 if (htNeedsResize(zs->dict)) dictResize(zs->dict); in zremrangeGenericCommand()
1552 if (dictSize(zs->dict) == 0) { in zremrangeGenericCommand()
1614 zset *zs; member
1672 it->sl.zs = op->subject->ptr; in zuiInitIterator()
1673 it->sl.node = it->sl.zs->zsl->header->level[0].forward; in zuiInitIterator()
1726 zset *zs = op->subject->ptr; in zuiLength() local
1727 return zs->zsl->length; in zuiLength()
1895 zset *zs = op->subject->ptr; in zuiFind() local
1897 if ((de = dictFind(zs->dict,val->ele)) != NULL) { in zuiFind()
2255 zset *zs = zobj->ptr; in zrangeGenericCommand() local
2256 zskiplist *zsl = zs->zsl; in zrangeGenericCommand()
2414 zset *zs = zobj->ptr; in genericZrangebyscoreCommand() local
2415 zskiplist *zsl = zs->zsl; in genericZrangebyscoreCommand()
2535 zset *zs = zobj->ptr; in zcountCommand() local
2536 zskiplist *zsl = zs->zsl; in zcountCommand()
2613 zset *zs = zobj->ptr; in zlexcountCommand() local
2614 zskiplist *zsl = zs->zsl; in zlexcountCommand()
2761 zset *zs = zobj->ptr; in genericZrangebylexCommand() local
2762 zskiplist *zsl = zs->zsl; in genericZrangebylexCommand()
2892 zset *zs = zobj->ptr; in zrankGenericCommand() local
2893 zskiplist *zsl = zs->zsl; in zrankGenericCommand()
2898 de = dictFind(zs->dict,ele); in zrankGenericCommand()