]> git.saurik.com Git - redis.git/commitdiff
fix for ZADD in score update mode
authorantirez <antirez@gmail.com>
Fri, 23 Oct 2009 23:31:29 +0000 (01:31 +0200)
committerantirez <antirez@gmail.com>
Fri, 23 Oct 2009 23:31:29 +0000 (01:31 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 2e78d9c77e48ae86b5d1b24c8fff4e0dbd4ef732..ee99792bbd084d91e6be38e9083733e1c9cb6535 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -3794,6 +3794,7 @@ static int zslDelete(zskiplist *zsl, double score, robj *obj) {
             zslFreeNode(x);
             while(zsl->level > 1 && zsl->header->forward[zsl->level-1] == NULL)
                 zsl->level--;
+            zsl->length--;
             return 1;
         } else {
             x = x->forward[0];