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
2161a965
Commit
2161a965
authored
Oct 26, 2009
by
antirez
Browse files
ZSETs random fixes. Now the implementation appears to be pretty stable
parent
ad807e6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
2161a965
...
...
@@ -3869,7 +3869,10 @@ static void zaddCommand(redisClient *c) {
assert
(
deleted
!=
0
);
zslInsert
(
zs
->
zsl
,
*
score
,
c
->
argv
[
3
]);
incrRefCount
(
c
->
argv
[
3
]);
dictReplace
(
zs
->
dict
,
c
->
argv
[
3
],
score
);
server
.
dirty
++
;
}
else
{
zfree
(
score
);
}
addReply
(
c
,
shared
.
czero
);
}
...
...
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