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

Function createClusterNode

src/cluster.c:521–538  ·  view source on GitHub ↗

Create a new cluster node, with the specified flags. * If "nodename" is NULL this is considered a first handshake and a random * node name is assigned to this node (it will be fixed later when we'll * receive the first pong). * * The node is created and returned to the user, but it is not automatically * added to the nodes hash table. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

clusterLoadConfigFunction · 0.85
clusterInitFunction · 0.85
clusterStartHandshakeFunction · 0.85
clusterProcessPacketFunction · 0.85

Calls 4

zmallocFunction · 0.85
getRandomHexCharsFunction · 0.85
listCreateFunction · 0.85
mstimeFunction · 0.70

Tested by

no test coverage detected