Commit 68e779f3 authored by Itamar Haber's avatar Itamar Haber
Browse files

Adds keyspace notifications for lrem

parent 5b7b2353
...@@ -509,12 +509,17 @@ void lremCommand(client *c) { ...@@ -509,12 +509,17 @@ void lremCommand(client *c) {
} }
listTypeReleaseIterator(li); listTypeReleaseIterator(li);
if (removed) {
signalModifiedKey(c->db,c->argv[1]);
notifyKeyspaceEvent(NOTIFY_GENERIC,"lrem",c->argv[1],c->db->id);
}
if (listTypeLength(subject) == 0) { if (listTypeLength(subject) == 0) {
dbDelete(c->db,c->argv[1]); 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment