Merge pull request #7039 from guybe7/persist_ksn

PERSIST should notify a keyspace event
This commit is contained in:
Salvatore Sanfilippo 2020-04-02 11:21:20 +02:00 committed by GitHub
commit a8602f31cb

View File

@ -590,6 +590,7 @@ void pttlCommand(client *c) {
void persistCommand(client *c) {
if (lookupKeyWrite(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);
server.dirty++;
} else {