diff --git a/src/db.c b/src/db.c index e47a4a681..0f8eaefa3 100644 --- a/src/db.c +++ b/src/db.c @@ -1034,6 +1034,13 @@ void moveCommand(client *c) { /* OK! key moved, free the entry in the source DB */ dbDelete(src,c->argv[1]); + signalModifiedKey(src,c->argv[1]); + signalModifiedKey(dst,c->argv[1]); + notifyKeyspaceEvent(NOTIFY_GENERIC, + "move_from",c->argv[1],src->id); + notifyKeyspaceEvent(NOTIFY_GENERIC, + "move_to",c->argv[1],dst->id); + server.dirty++; addReply(c,shared.cone); }