mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 17:21:20 +00:00
Add REDIS_BIND_ADDR access macro
We need to access (bindaddr[0] || NULL) in a few places, so centralize access with a nice macro.
This commit is contained in:
@ -2794,8 +2794,7 @@ void clusterCron(void) {
|
||||
clusterLink *link;
|
||||
|
||||
fd = anetTcpNonBlockBindConnect(server.neterr, node->ip,
|
||||
node->port+REDIS_CLUSTER_PORT_INCR,
|
||||
server.bindaddr_count ? server.bindaddr[0] : NULL);
|
||||
node->port+REDIS_CLUSTER_PORT_INCR, REDIS_BIND_ADDR);
|
||||
if (fd == -1) {
|
||||
redisLog(REDIS_DEBUG, "Unable to connect to "
|
||||
"Cluster Node [%s]:%d -> %s", node->ip,
|
||||
|
Reference in New Issue
Block a user