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

(cherry picked from commit b87c288016c68716cbb97534b7748045ca58c953)
This commit is contained in:
guybe7 2020-08-18 18:07:59 +02:00 committed by Oran Agra
parent 43bc1ea065
commit 4e19358d65

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++;