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
33c08b39
Commit
33c08b39
authored
Jun 05, 2009
by
antirez
Browse files
LREM now returns :0 for non existing keys
parent
dde65f3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
33c08b39
...
...
@@ -2860,7 +2860,7 @@ static void lremCommand(redisClient *c) {
o
=
lookupKeyWrite
(
c
->
db
,
c
->
argv
[
1
]);
if
(
o
==
NULL
)
{
addReply
(
c
,
shared
.
nokey
er
r
);
addReply
(
c
,
shared
.
cz
er
o
);
}
else
{
if
(
o
->
type
!=
REDIS_LIST
)
{
addReply
(
c
,
shared
.
wrongtypeerr
);
...
...
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