fix move command
This commit is contained in:
parent
3243252cb0
commit
4ece8bd7a7
7
src/db.c
7
src/db.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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user