Home
last modified time | relevance | path

Searched refs:zn (Results 1 – 2 of 2) sorted by relevance

/redis-3.2.3/src/
H A Dt_zset.c59 zskiplistNode *zn = zmalloc(sizeof(*zn)+level*sizeof(struct zskiplistLevel)); in zslCreateNode() local
60 zn->score = score; in zslCreateNode()
61 zn->obj = obj; in zslCreateNode()
62 return zn; in zslCreateNode()
2537 zskiplistNode *zn; in zcountCommand() local
2544 if (zn != NULL) { in zcountCommand()
2545 rank = zslGetRank(zsl, zn->score, zn->obj); in zcountCommand()
2553 rank = zslGetRank(zsl, zn->score, zn->obj); in zcountCommand()
2622 if (zn != NULL) { in zlexcountCommand()
2623 rank = zslGetRank(zsl, zn->score, zn->obj); in zlexcountCommand()
[all …]
H A Ddb.c1298 zskiplistNode *zn; in countKeysInSlot() local
1306 zn = zslFirstInRange(zsl, &range); in countKeysInSlot()
1309 if (zn != NULL) { in countKeysInSlot()
1310 rank = zslGetRank(zsl, zn->score, zn->obj); in countKeysInSlot()
1314 zn = zslLastInRange(zsl, &range); in countKeysInSlot()
1317 if (zn != NULL) { in countKeysInSlot()
1318 rank = zslGetRank(zsl, zn->score, zn->obj); in countKeysInSlot()