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
4e5e366e
Commit
4e5e366e
authored
Nov 09, 2016
by
antirez
Browse files
PSYNC2: Wrap debugging code with if(0)
parent
2669fb83
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
4e5e366e
...
@@ -296,7 +296,9 @@ void replicationFeedSlavesFromMasterStream(list *slaves, char *buf, size_t bufle
...
@@ -296,7 +296,9 @@ void replicationFeedSlavesFromMasterStream(list *slaves, char *buf, size_t bufle
listNode
*
ln
;
listNode
*
ln
;
listIter
li
;
listIter
li
;
{
/* Debugging: this is handy to see the stream sent from master
* to slaves. Disabled with if(0). */
if
(
0
)
{
printf
(
"%zu:"
,
buflen
);
printf
(
"%zu:"
,
buflen
);
for
(
size_t
j
=
0
;
j
<
buflen
;
j
++
)
{
for
(
size_t
j
=
0
;
j
<
buflen
;
j
++
)
{
printf
(
"%c"
,
isprint
(
buf
[
j
])
?
buf
[
j
]
:
'.'
);
printf
(
"%c"
,
isprint
(
buf
[
j
])
?
buf
[
j
]
:
'.'
);
...
...
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