projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e197b44
)
fix for ZADD in score update mode
author
antirez
<antirez@gmail.com>
Fri, 23 Oct 2009 23:31:29 +0000
(
01:31
+0200)
committer
antirez
<antirez@gmail.com>
Fri, 23 Oct 2009 23:31:29 +0000
(
01:31
+0200)
redis.c
patch
|
blob
|
blame
|
history
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];