PERSIST should signalModifiedKey (Like EXPIRE does) (#7671)

(cherry picked from commit 64cceb12ad5982393f9b93557a2c7d3c77ffc946)
This commit is contained in:
guybe7 2020-08-18 18:07:59 +02:00 committed by Oran Agra
parent 299c092077
commit d74a98eaac

View File

@ -594,6 +594,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])) {
signalModifiedKey(c,c->db,c->argv[1]);
notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id); notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id);
addReply(c,shared.cone); addReply(c,shared.cone);
server.dirty++; server.dirty++;