summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorDvir Volk <dvirsky@gmail.com>2017-12-07 16:55:46 +0200
committerDvir Volk <dvirsky@gmail.com>2018-02-14 21:40:10 +0200
commit3aab12414f27685bf8e9dc9fd4693c8c9ecf9ccb (patch)
treea185dbdc7309e85a73fed7ced399b918a8b1e4f9 /src/notify.c
parenta8e2e99a88968a22cdbfdac404a812e80b5dd0d7 (diff)
downloadredis-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.c3
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;