Keyspace events added for more commands.

This commit is contained in:
antirez
2013-01-24 16:20:53 +01:00
parent 8766e81079
commit da04e6ed44
8 changed files with 134 additions and 51 deletions

View File

@ -504,9 +504,11 @@ void sortCommand(redisClient *c) {
}
if (outputlen) {
setKey(c->db,storekey,sobj);
notifyKeyspaceEvent("sortstore",storekey,c->db->id);
server.dirty += outputlen;
} else if (dbDelete(c->db,storekey)) {
signalModifiedKey(c->db,storekey);
notifyKeyspaceEvent("del",storekey,c->db->id);
server.dirty++;
}
decrRefCount(sobj);
@ -525,5 +527,3 @@ void sortCommand(redisClient *c) {
}
zfree(vector);
}