Fix mismatching keyspace notification classes

This commit is contained in:
Guy Benoish 2019-03-14 12:11:16 +01:00 committed by antirez
parent 643110525e
commit 6fa16f585c
2 changed files with 2 additions and 2 deletions

View File

@ -659,7 +659,7 @@ void georadiusGeneric(client *c, int flags) {
zsetConvertToZiplistIfNeeded(zobj,maxelelen); zsetConvertToZiplistIfNeeded(zobj,maxelelen);
setKey(c->db,storekey,zobj); setKey(c->db,storekey,zobj);
decrRefCount(zobj); decrRefCount(zobj);
notifyKeyspaceEvent(NOTIFY_LIST,"georadiusstore",storekey, notifyKeyspaceEvent(NOTIFY_ZSET,"georadiusstore",storekey,
c->db->id); c->db->id);
server.dirty += returned_items; server.dirty += returned_items;
} else if (dbDelete(c->db,storekey)) { } else if (dbDelete(c->db,storekey)) {

View File

@ -520,7 +520,7 @@ void lremCommand(client *c) {
if (removed) { if (removed) {
signalModifiedKey(c->db,c->argv[1]); signalModifiedKey(c->db,c->argv[1]);
notifyKeyspaceEvent(NOTIFY_GENERIC,"lrem",c->argv[1],c->db->id); notifyKeyspaceEvent(NOTIFY_LIST,"lrem",c->argv[1],c->db->id);
} }
if (listTypeLength(subject) == 0) { if (listTypeLength(subject) == 0) {