Commit 4e19358d authored by guybe7's avatar guybe7 Committed by Oran Agra
Browse files

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


(cherry picked from commit b87c2880)
parent 43bc1ea0
...@@ -594,6 +594,7 @@ void pttlCommand(client *c) { ...@@ -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++;
......
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