diff options
author | Dvir Volk <dvirsky@gmail.com> | 2017-12-07 16:55:46 +0200 |
---|---|---|
committer | Dvir Volk <dvirsky@gmail.com> | 2018-02-14 21:40:10 +0200 |
commit | 3aab12414f27685bf8e9dc9fd4693c8c9ecf9ccb (patch) | |
tree | a185dbdc7309e85a73fed7ced399b918a8b1e4f9 /src/notify.c | |
parent | a8e2e99a88968a22cdbfdac404a812e80b5dd0d7 (diff) | |
download | redis-3aab12414f27685bf8e9dc9fd4693c8c9ecf9ccb.tar.gz |
Remove the NOTIFY_MODULE flag and simplify the module notification flow if there aren't subscribers
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c index 23789804f..3473a125e 100644 --- a/src/notify.c +++ b/src/notify.c @@ -104,8 +104,7 @@ void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid) { * This bypasses the notifications configuration, but the module engine * will only call event subscribers if the event type matches the types * they are interested in. */ - if (server.notify_keyspace_events & NOTIFY_MODULE) - moduleNotifyKeyspaceEvent(type, event, key, dbid); + moduleNotifyKeyspaceEvent(type, event, key, dbid); /* If notifications for this class of events are off, return ASAP. */ if (!(server.notify_keyspace_events & type)) return; |