mirror of
https://github.com/fluencelabs/redis
synced 2025-04-07 01:51:05 +00:00
LREM now returns :0 for non existing keys
This commit is contained in:
parent
dde65f3f3c
commit
33c08b3916
2
redis.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user