From 05dbc820051daab748761ec67c9c1bba37f2717e Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Thu, 14 May 2015 10:52:32 +0200
Subject: [PATCH] Sentinel: debugging code removed from sentinelSendPing()

---
 src/sentinel.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/sentinel.c b/src/sentinel.c
index bc5935b0..57d5fd27 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -2453,15 +2453,6 @@ int sentinelForceHelloUpdateForMaster(sentinelRedisInstance *master) {
  * On error zero is returned, and we can't consider the PING command
  * queued in the connection. */
 int sentinelSendPing(sentinelRedisInstance *ri) {
-    static unsigned long long counters[256];
-    static time_t last;
-    // printf("(%lld) PING %s\n", mstime(), sentinelGetInstanceTypeString(ri));
-    counters[ri->flags & (SRI_SLAVE|SRI_MASTER|SRI_SENTINEL)]++;
-    if (time(NULL)-last >= 5) {
-        printf("slave: %llu master: %llu sentinel: %llu\n",
-            counters[SRI_SLAVE], counters[SRI_MASTER], counters[SRI_SENTINEL]);
-        last = time(NULL);
-    }
     int retval = redisAsyncCommand(ri->link->cc,
         sentinelPingReplyCallback, ri, "PING");
     if (retval == REDIS_OK) {