Commit 4e5e366e authored by antirez's avatar antirez
Browse files

PSYNC2: Wrap debugging code with if(0)

parent 2669fb83
...@@ -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] : '.');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment