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
2402f5a7
Unverified
Commit
2402f5a7
authored
Aug 12, 2021
by
Madelyn Olson
Committed by
GitHub
Aug 12, 2021
Browse files
Update cluster debug log to include human readable packet type (#9361)
parent
1221f7cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
2402f5a7
...
...
@@ -1786,8 +1786,8 @@ int clusterProcessPacket(clusterLink *link) {
if
(
type
<
CLUSTERMSG_TYPE_COUNT
)
server
.
cluster
->
stats_bus_messages_received
[
type
]
++
;
serverLog
(
LL_DEBUG
,
"--- Processing packet of type %
d
, %lu bytes"
,
type
,
(
unsigned
long
)
totlen
);
serverLog
(
LL_DEBUG
,
"--- Processing packet of type %
s
, %lu bytes"
,
clusterGetMessageTypeString
(
type
)
,
(
unsigned
long
)
totlen
);
/* Perform sanity checks */
if
(
totlen
<
16
)
return
1
;
/* At least signature, version, totlen, count. */
...
...
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