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
bf180440
Commit
bf180440
authored
Sep 18, 2018
by
antirez
Browse files
Modules: associate a fake client to cluster message context callback.
Fixes #5354.
parent
81c4be42
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
bf180440
...
...
@@ -3938,6 +3938,8 @@ void moduleCallClusterReceivers(const char *sender_id, uint64_t module_id, uint8
if
(
r
->
module_id
==
module_id
)
{
RedisModuleCtx
ctx
=
REDISMODULE_CTX_INIT
;
ctx
.
module
=
r
->
module
;
ctx
.
client
=
moduleKeyspaceSubscribersClient
;
selectDb
(
ctx
.
client
,
0
);
r
->
callback
(
&
ctx
,
sender_id
,
type
,
payload
,
len
);
moduleFreeContext
(
&
ctx
);
return
;
...
...
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