Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6203ed04
Unverified
Commit
6203ed04
authored
Nov 25, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 25, 2019
Browse files
Merge pull request #6593 from daidaotong/movecommandfix
fix move command: WATCH/MULTI/EXEC mechanism breaks
parents
d39afb68
4ece8bd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
6203ed04
...
...
@@ -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