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
bbce3ba9
Commit
bbce3ba9
authored
Jan 29, 2020
by
antirez
Browse files
Add more info in the unblockClientFromModule() function.
parent
40295fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
bbce3ba9
...
...
@@ -4282,7 +4282,13 @@ void unblockClientFromModule(client *c) {
* not implemented (or it was, but RM_UnblockClient was not called from
* within it, as it should).
* We must call moduleUnblockClient in order to free privdata and
* RedisModuleBlockedClient */
* RedisModuleBlockedClient.
*
* Note that clients implementing threads and working with private data,
* should make sure to stop the threads or protect the private data
* in some other way in the disconnection and timeout callback, because
* here we are going to free the private data associated with the
* blocked client. */
if
(
!
bc
->
unblocked
)
moduleUnblockClient
(
c
);
...
...
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