mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Cluster: fix an error message when logging failover auth denied.
This commit is contained in:
parent
58799718be
commit
8ef79e72ac
@ -2338,9 +2338,11 @@ void clusterSendFailoverAuthIfNeeded(clusterNode *node, clusterMsg *request) {
|
||||
if (mstime() - node->slaveof->voted_time < server.cluster_node_timeout * 2)
|
||||
{
|
||||
redisLog(REDIS_WARNING,
|
||||
"Failover auth denied to %.40s: already voted for epoch %llu",
|
||||
"Failover auth denied to %.40s: "
|
||||
"can't vote about this master before %lld milliseconds",
|
||||
node->name,
|
||||
(unsigned long long) server.cluster->currentEpoch);
|
||||
(long long) ((server.cluster_node_timeout*2)-
|
||||
(mstime() - node->slaveof->voted_time)));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user