projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325d1eb
)
Fix for skiplists backward link
author
antirez
<antirez@gmail.com>
Mon, 26 Oct 2009 15:43:56 +0000
(16:43 +0100)
committer
antirez
<antirez@gmail.com>
Mon, 26 Oct 2009 15:43:56 +0000
(16:43 +0100)
redis.c
patch
|
blob
|
blame
|
history
diff --git
a/redis.c
b/redis.c
index eb0a1730d72d4b8cb6314c77336b3f32c1766667..202b0a6992bdce35a32a27ae5b210f45644376cf 100644
(file)
--- a/
redis.c
+++ b/
redis.c
@@
-3776,7
+3776,7
@@
static void zslInsert(zskiplist *zsl, double score, robj *obj) {
x->forward[i] = update[i]->forward[i];
update[i]->forward[i] = x;
}
- x->backward = (update[0] == zsl->header) ? NULL : update[
i
];
+ x->backward = (update[0] == zsl->header) ? NULL : update[
0
];
if (x->forward[0])
x->forward[0]->backward = x;
else