]> git.saurik.com Git - redis.git/blobdiff - redis.c
fix for ZADD in score update mode
[redis.git] / 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];