fix for ZADD in score update mode

This commit is contained in:
antirez 2009-10-24 01:31:29 +02:00
parent e197b441a2
commit f4d4c47f66

View File

@ -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];