diff options
author | antirez <antirez@gmail.com> | 2009-06-05 16:07:22 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2009-06-05 16:07:22 +0200 |
commit | 33c08b39164eb669313f4871ce1b16a8e4cb2e5c (patch) | |
tree | 2676042551e1de012c5a406b8f351fb5668431b4 | |
parent | dde65f3f3c9949570cf19fb56e35ba195b48227d (diff) | |
download | redis-33c08b39164eb669313f4871ce1b16a8e4cb2e5c.tar.gz |
LREM now returns :0 for non existing keys
-rw-r--r-- | redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |