mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
fix for ZADD in score update mode
This commit is contained in:
parent
e197b441a2
commit
f4d4c47f66
1
redis.c
1
redis.c
@ -3794,6 +3794,7 @@ static int zslDelete(zskiplist *zsl, double score, robj *obj) {
|
|||||||
zslFreeNode(x);
|
zslFreeNode(x);
|
||||||
while(zsl->level > 1 && zsl->header->forward[zsl->level-1] == NULL)
|
while(zsl->level > 1 && zsl->header->forward[zsl->level-1] == NULL)
|
||||||
zsl->level--;
|
zsl->level--;
|
||||||
|
zsl->length--;
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
x = x->forward[0];
|
x = x->forward[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user