diff options
author | antirez <antirez@gmail.com> | 2020-01-29 12:47:50 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-01-29 12:47:50 +0100 |
commit | 17ff3173d62aa420c5970ccfa0f7dbca7c64babd (patch) | |
tree | c23d4dd2884b4669b656b1b7ebd30d6101984fca /src/module.c | |
parent | bf53f9280a7068ea80a47ccdc0fe9d50258e0612 (diff) | |
download | redis-17ff3173d62aa420c5970ccfa0f7dbca7c64babd.tar.gz |
Add more info in the unblockClientFromModule() function.
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index d2b267be2..7fdab1b34 100644 --- a/src/module.c +++ b/src/module.c @@ -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); |