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
561dc2bf
Commit
561dc2bf
authored
Jun 04, 2020
by
antirez
Browse files
TCC: select correct db in reply_client to unlock keys properly.
parent
840932fb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
561dc2bf
...
...
@@ -7290,6 +7290,7 @@ void executeThreadedCommand(client *c, coreThreadedCommandCallback callback, voi
* blocked handle: this way if the real client is freed because of
* disconnection, we still unlock the keys in the right moment, that
* is once the thread returns. */
selectDb
(
bc
->
reply_client
,
c
->
db
->
id
);
bc
->
reply_client
->
locked
=
c
->
locked
;
c
->
locked
=
NULL
;
...
...
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