From 3a87d02e1d815e31a8ef3a8564fe4d8c39a521b1 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Wed, 3 Jun 2015 13:10:35 +0200 Subject: [PATCH] Fix tabs and indentation --- src/replication.c | 2 +- src/sentinel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replication.c b/src/replication.c index 5aa2d5cb..14034a9f 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1990,7 +1990,7 @@ void replicationCron(void) { } /* Timed out master when we are an already connected slave? */ - if (server.masterhost && server.repl_state == REDIS_REPL_CONNECTED && + if (server.masterhost && server.repl_state == REDIS_REPL_CONNECTED && (time(NULL)-server.master->lastinteraction) > server.repl_timeout) { redisLog(REDIS_WARNING,"MASTER timeout: no data nor PING received..."); diff --git a/src/sentinel.c b/src/sentinel.c index 88a45f3b..f1379aa9 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2124,7 +2124,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) { if ((ri->flags & SRI_SLAVE) && role == SRI_SLAVE && (ri->slave_master_port != ri->master->addr->port || - strcasecmp(ri->slave_master_host, ri->master->addr->ip))) + strcasecmp(ri->slave_master_host, ri->master->addr->ip))) { mstime_t wait_time = ri->master->failover_timeout; -- GitLab