From f4d4c47f66a182746e3955c5240c2c0e8d528e43 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 24 Oct 2009 01:31:29 +0200 Subject: [PATCH] fix for ZADD in score update mode --- redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.c b/redis.c index 2e78d9c7..ee99792b 100644 --- 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];