MCPcopy Create free account
hub / github.com/antirez/disque / nodeUpdateAddressIfNeeded

Function nodeUpdateAddressIfNeeded

src/cluster.c:1017–1040  ·  view source on GitHub ↗

Update the node address to the IP address that can be extracted * from link->fd, and at the specified port. * Also disconnect the node link so that we'll connect again to the new * address. * * If the ip/port pair are already correct no operation is performed at * all. * * The function returns 0 if the node address is still the same, * otherwise 1 is returned. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

clusterProcessPacketFunction · 0.85

Calls 3

nodeIp2StringFunction · 0.85
freeClusterLinkFunction · 0.85
serverLogFunction · 0.85

Tested by

no test coverage detected