Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4ece8bd7
Commit
4ece8bd7
authored
Nov 19, 2019
by
Daniel Dai
Browse files
fix move command
parent
3243252c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
4ece8bd7
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment