PERSIST should signalModifiedKey (Like EXPIRE does) (#7671)
This commit is contained in:
parent
0f741a9e2d
commit
b87c288016
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user