Commit 1907e0f1 authored by Guy Benoish's avatar Guy Benoish Committed by antirez
Browse files

PERSIST should notify a keyspace event

parent c35a5316
...@@ -590,6 +590,7 @@ void pttlCommand(client *c) { ...@@ -590,6 +590,7 @@ void pttlCommand(client *c) {
void persistCommand(client *c) { void persistCommand(client *c) {
if (lookupKeyWrite(c->db,c->argv[1])) { if (lookupKeyWrite(c->db,c->argv[1])) {
if (removeExpire(c->db,c->argv[1])) { if (removeExpire(c->db,c->argv[1])) {
notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id);
addReply(c,shared.cone); addReply(c,shared.cone);
server.dirty++; server.dirty++;
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment