projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dde65f3
)
LREM now returns :0 for non existing keys
author
antirez
<antirez@gmail.com>
Fri, 5 Jun 2009 14:07:22 +0000
(16:07 +0200)
committer
antirez
<antirez@gmail.com>
Fri, 5 Jun 2009 14:07:22 +0000
(16:07 +0200)
redis.c
patch
|
blob
|
blame
|
history
diff --git
a/redis.c
b/redis.c
index 28e1c64f7fc7227482d875db93c402af0bdc23f3..8b3f3be24a228ecd24f58d4196fbe7618306cb5b 100644
(file)
--- a/
redis.c
+++ b/
redis.c
@@
-2860,7
+2860,7
@@
static void lremCommand(redisClient *c) {
o = lookupKeyWrite(c->db,c->argv[1]);
if (o == NULL) {
- addReply(c,shared.
nokeyerr
);
+ addReply(c,shared.
czero
);
} else {
if (o->type != REDIS_LIST) {
addReply(c,shared.wrongtypeerr);