mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Sentinel: debugging code removed from sentinelSendPing()
This commit is contained in:
parent
58d2bb951a
commit
05dbc82005
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user