Commit 4ece8bd7 authored by Daniel Dai's avatar Daniel Dai
Browse files

fix move command

parent 3243252c
...@@ -1034,6 +1034,13 @@ void moveCommand(client *c) { ...@@ -1034,6 +1034,13 @@ void moveCommand(client *c) {
/* OK! key moved, free the entry in the source DB */ /* OK! key moved, free the entry in the source DB */
dbDelete(src,c->argv[1]); 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++; server.dirty++;
addReply(c,shared.cone); addReply(c,shared.cone);
} }
......
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