LREM now returns :0 for non existing keys

This commit is contained in:
antirez 2009-06-05 16:07:22 +02:00
parent dde65f3f3c
commit 33c08b3916

View File

@ -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);