PERSIST should signalModifiedKey (Like EXPIRE does) (#7671)
(cherry picked from commit b87c288016c68716cbb97534b7748045ca58c953)
This commit is contained in:
parent
43bc1ea065
commit
4e19358d65
@ -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