PSYNC2: Wrap debugging code with if(0)

This commit is contained in:
antirez 2016-11-09 15:36:25 +01:00
parent 2669fb8364
commit 4e5e366ed2

View File

@ -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] : '.');