MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / process_decom

Function process_decom

net/net.c:3876–3888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3874}
3875
3876static int process_decom(netinfo_type *net, host_node_type *host)
3877{
3878 int node, rc;
3879 rc = read_stream(net, host, host->sb, &node, sizeof(int));
3880 if (rc != sizeof(int)) {
3881 logmsg(LOGMSG_ERROR,
3882 "%s:err from read_stream attempting to read host, rc=%d",
3883 __func__, rc);
3884 return -1;
3885 }
3886 node = ntohl(node);
3887 return process_decom_int(net, hostname(node));
3888}
3889
3890static int process_decom_name(netinfo_type *netinfo_ptr,
3891 host_node_type *host_node_ptr)

Callers 1

reader_threadFunction · 0.85

Calls 4

read_streamFunction · 0.85
process_decom_intFunction · 0.85
hostnameFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected