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
8526e04e
Unverified
Commit
8526e04e
authored
May 10, 2021
by
Huang Zhw
Committed by
GitHub
May 10, 2021
Browse files
cluster process publish message only for known nodes. (#8856)
parent
97108845
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
8526e04e
...
...
@@ -2148,6 +2148,8 @@ int clusterProcessPacket(clusterLink *link) {
hdr
->
sender
,
hdr
->
data
.
fail
.
about
.
nodename
);
}
}
else
if
(
type
==
CLUSTERMSG_TYPE_PUBLISH
)
{
if
(
!
sender
)
return
1
;
/* We don't know that node. */
robj
*
channel
,
*
message
;
uint32_t
channel_len
,
message_len
;
...
...
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