From 29226a3919ef1f74bc161b31972193ce30bc0ed6 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 1 Aug 2018 18:54:15 +0200 Subject: [PATCH] More commenting of zslUpdateScore(). --- src/t_zset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/t_zset.c b/src/t_zset.c index 16ec715e..a794b44c 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -259,6 +259,8 @@ zskiplistNode *zslUpdateScore(zskiplist *zsl, double curscore, sds ele, double n zskiplistNode *update[ZSKIPLIST_MAXLEVEL], *x; 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; for (i = zsl->level-1; i >= 0; i--) { while (x->level[i].forward &&