Merge pull request #7039 from guybe7/persist_ksn
PERSIST should notify a keyspace event
This commit is contained in:
commit
a8602f31cb
@ -590,6 +590,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])) {
|
||||||
|
notifyKeyspaceEvent(NOTIFY_GENERIC,"persist",c->argv[1],c->db->id);
|
||||||
addReply(c,shared.cone);
|
addReply(c,shared.cone);
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user