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
21661d7a
Commit
21661d7a
authored
Apr 24, 2012
by
antirez
Browse files
Fixed a bug in propagation of PUBLISH via the cluster bus.
This bug was spotted by clang on FreeBSD.
parent
e54fe9a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
21661d7a
...
...
@@ -902,7 +902,7 @@ void clusterSendPublish(clusterLink *link, robj *channel, robj *message) {
}
else
{
payload
=
zmalloc
(
totlen
);
hdr
=
(
clusterMsg
*
)
payload
;
memcpy
(
payload
,
hdr
,
sizeof
(
hdr
));
memcpy
(
payload
,
hdr
,
sizeof
(
*
hdr
));
}
memcpy
(
hdr
->
data
.
publish
.
msg
.
bulk_data
,
channel
->
ptr
,
sdslen
(
channel
->
ptr
));
memcpy
(
hdr
->
data
.
publish
.
msg
.
bulk_data
+
sdslen
(
channel
->
ptr
),
...
...
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