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
e08c9c15
Commit
e08c9c15
authored
May 05, 2019
by
Yossi Gottlieb
Committed by
antirez
May 10, 2019
Browse files
Preserve client->id for blocked clients.
parent
c6b1252f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
e08c9c15
...
@@ -3824,7 +3824,10 @@ RedisModuleCtx *RM_GetThreadSafeContext(RedisModuleBlockedClient *bc) {
...
@@ -3824,7 +3824,10 @@ RedisModuleCtx *RM_GetThreadSafeContext(RedisModuleBlockedClient *bc) {
* in order to keep things like the currently selected database and similar
* in order to keep things like the currently selected database and similar
* things. */
* things. */
ctx
->
client
=
createClient
(
-
1
);
ctx
->
client
=
createClient
(
-
1
);
if
(
bc
)
selectDb
(
ctx
->
client
,
bc
->
dbid
);
if
(
bc
)
{
selectDb
(
ctx
->
client
,
bc
->
dbid
);
ctx
->
client
->
id
=
bc
->
client
->
id
;
}
return
ctx
;
return
ctx
;
}
}
...
...
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