mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
More commenting of zslUpdateScore().
This commit is contained in:
parent
12ff0c0d79
commit
29226a3919
@ -259,6 +259,8 @@ zskiplistNode *zslUpdateScore(zskiplist *zsl, double curscore, sds ele, double n
|
|||||||
zskiplistNode *update[ZSKIPLIST_MAXLEVEL], *x;
|
zskiplistNode *update[ZSKIPLIST_MAXLEVEL], *x;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* We need to seek to element to update to start: this is useful anyway,
|
||||||
|
* we'll have to update or remove it. */
|
||||||
x = zsl->header;
|
x = zsl->header;
|
||||||
for (i = zsl->level-1; i >= 0; i--) {
|
for (i = zsl->level-1; i >= 0; i--) {
|
||||||
while (x->level[i].forward &&
|
while (x->level[i].forward &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user