From 4e5e366ed265f2571124edfa9c2f9eaa0d450c45 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 9 Nov 2016 15:36:25 +0100 Subject: [PATCH] PSYNC2: Wrap debugging code with if(0) --- src/replication.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index a98d0d35..1962b3a4 100644 --- a/src/replication.c +++ b/src/replication.c @@ -296,7 +296,9 @@ void replicationFeedSlavesFromMasterStream(list *slaves, char *buf, size_t bufle listNode *ln; listIter li; - { + /* Debugging: this is handy to see the stream sent from master + * to slaves. Disabled with if(0). */ + if (0) { printf("%zu:",buflen); for (size_t j = 0; j < buflen; j++) { printf("%c", isprint(buf[j]) ? buf[j] : '.');