mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
Adds keyspace notifications for lrem
This commit is contained in:
parent
92fd7dac35
commit
593cf5989e
12
src/t_list.c
12
src/t_list.c
@ -678,9 +678,17 @@ void lremCommand(redisClient *c) {
|
|||||||
if (subject->encoding == REDIS_ENCODING_ZIPLIST)
|
if (subject->encoding == REDIS_ENCODING_ZIPLIST)
|
||||||
decrRefCount(obj);
|
decrRefCount(obj);
|
||||||
|
|
||||||
if (listTypeLength(subject) == 0) dbDelete(c->db,c->argv[1]);
|
if (removed) {
|
||||||
|
signalModifiedKey(c->db,c->argv[1]);
|
||||||
|
notifyKeyspaceEvent(NOTIFY_GENERIC,"lrem",c->argv[1],c->db->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (listTypeLength(subject) == 0) {
|
||||||
|
dbDelete(c->db,c->argv[1]);
|
||||||
|
notifyKeyspaceEvent(NOTIFY_GENERIC,"del",c->argv[1],c->db->id);
|
||||||
|
}
|
||||||
|
|
||||||
addReplyLongLong(c,removed);
|
addReplyLongLong(c,removed);
|
||||||
if (removed) signalModifiedKey(c->db,c->argv[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is the semantic of this command:
|
/* This is the semantic of this command:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user