Commit 33c08b39 authored by antirez's avatar antirez
Browse files

LREM now returns :0 for non existing keys

parent dde65f3f
...@@ -2860,7 +2860,7 @@ static void lremCommand(redisClient *c) { ...@@ -2860,7 +2860,7 @@ static void lremCommand(redisClient *c) {
o = lookupKeyWrite(c->db,c->argv[1]); o = lookupKeyWrite(c->db,c->argv[1]);
if (o == NULL) { if (o == NULL) {
addReply(c,shared.nokeyerr); addReply(c,shared.czero);
} else { } else {
if (o->type != REDIS_LIST) { if (o->type != REDIS_LIST) {
addReply(c,shared.wrongtypeerr); addReply(c,shared.wrongtypeerr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment