summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-01-25 13:19:08 +0100
committerantirez <antirez@gmail.com>2013-01-28 13:15:12 +0100
commitfce016d31bc11ff19de1f1ff216e4a0588fea3ac (patch)
treef183f0c98139b5b44e2561daf9fe47398c258add /src/sort.c
parent1c0c551776bf2afae9314373012985db9b19bb03 (diff)
downloadredis-fce016d31bc11ff19de1f1ff216e4a0588fea3ac.tar.gz
Keyspace events: it is now possible to select subclasses of events.
When keyspace events are enabled, the overhead is not sever but noticeable, so this commit introduces the ability to select subclasses of events in order to avoid to generate events the user is not interested in. The events can be selected using redis.conf or CONFIG SET / GET.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c
index a0971473d..4b5040250 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -504,11 +504,12 @@ void sortCommand(redisClient *c) {
}
if (outputlen) {
setKey(c->db,storekey,sobj);
- notifyKeyspaceEvent("sortstore",storekey,c->db->id);
+ notifyKeyspaceEvent(REDIS_NOTIFY_LIST,"sortstore",storekey,
+ c->db->id);
server.dirty += outputlen;
} else if (dbDelete(c->db,storekey)) {
signalModifiedKey(c->db,storekey);
- notifyKeyspaceEvent("del",storekey,c->db->id);
+ notifyKeyspaceEvent(REDIS_NOTIFY_GENERIC,"del",storekey,c->db->id);
server.dirty++;
}
decrRefCount(sobj);