mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
PSYNC2: Wrap debugging code with if(0)
This commit is contained in:
parent
2669fb8364
commit
4e5e366ed2
@ -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] : '.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user