]> git.saurik.com Git - redis.git/commitdiff
LREM now returns :0 for non existing keys
authorantirez <antirez@gmail.com>
Fri, 5 Jun 2009 14:07:22 +0000 (16:07 +0200)
committerantirez <antirez@gmail.com>
Fri, 5 Jun 2009 14:07:22 +0000 (16:07 +0200)
redis.c

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) {
     
     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);
     } else {
         if (o->type != REDIS_LIST) {
             addReply(c,shared.wrongtypeerr);