AnetFormatIP(): renamed, commented, now sticks to IP:port format.

A few code style changes + consistent format: not nice for humans but
better for parsers.
This commit is contained in:
antirez
2014-12-11 18:20:30 +01:00
parent 491881e13b
commit ce269ad3c5
6 changed files with 15 additions and 14 deletions

View File

@ -1553,7 +1553,7 @@ int clusterProcessPacket(clusterLink *link) {
{
memcpy(myself->ip,ip,REDIS_IP_STR_LEN);
anetFormatIP(ip, sizeof(ip), myself->ip, -1);
anetFormatAddr(ip, sizeof(ip), myself->ip, -1);
redisLog(REDIS_WARNING,"IP address for this node updated to %s",
ip);
clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG);