diff --git a/src/cluster.c b/src/cluster.c index c8e1b9f7..edc03024 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2624,7 +2624,7 @@ void clusterLogCantFailover(int reason) { (mstime() - myself->slaveof->fail_time) < nolog_fail_time) return; switch(reason) { - case CLUSTER_CANT_FAILOVER_DATA_AGE: + case REDIS_CLUSTER_CANT_FAILOVER_DATA_AGE: msg = "Disconnected from master for longer than allowed. " "Please check the 'cluster-slave-validity-factor' configuration " "option.";