Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bb975144
Commit
bb975144
authored
Oct 26, 2009
by
antirez
Browse files
Fix for skiplists backward link
parent
325d1eb4
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
bb975144
...
@@ -3776,7 +3776,7 @@ static void zslInsert(zskiplist *zsl, double score, robj *obj) {
...
@@ -3776,7 +3776,7 @@ static void zslInsert(zskiplist *zsl, double score, robj *obj) {
x->forward[i] = update[i]->forward[i];
x->forward[i] = update[i]->forward[i];
update[i]->forward[i] = x;
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])
if (x->forward[0])
x->forward[0]->backward = x;
x->forward[0]->backward = x;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment