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
709d0a1b
Commit
709d0a1b
authored
Mar 03, 2010
by
Pieter Noordhuis
Browse files
x->backward never equals zsl->header
parent
69d95c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
709d0a1b
...
@@ -4931,8 +4931,7 @@ static int zslDelete(zskiplist *zsl, double score, robj *obj) {
...
@@ -4931,8 +4931,7 @@ static int zslDelete(zskiplist *zsl, double score, robj *obj) {
}
}
}
}
if (x->forward[0]) {
if (x->forward[0]) {
x
->
forward
[
0
]
->
backward
=
(
x
->
backward
==
zsl
->
header
)
?
x->forward[0]->backward = x->backward;
NULL
:
x
->
backward
;
} else {
} else {
zsl->tail = x->backward;
zsl->tail = x->backward;
}
}
...
@@ -4977,8 +4976,7 @@ static unsigned long zslDeleteRange(zskiplist *zsl, double min, double max, dict
...
@@ -4977,8 +4976,7 @@ static unsigned long zslDeleteRange(zskiplist *zsl, double min, double max, dict
}
}
}
}
if (x->forward[0]) {
if (x->forward[0]) {
x
->
forward
[
0
]
->
backward
=
(
x
->
backward
==
zsl
->
header
)
?
x->forward[0]->backward = x->backward;
NULL
:
x
->
backward
;
} else {
} else {
zsl->tail = x->backward;
zsl->tail = x->backward;
}
}
...
...
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