/* * Start infiniband */ static int ctdb_ibw_start(struct ctdb_context *ctdb) { int i; /* everything async here */ for (i=0;i<ctdb->num_nodes;i++) { struct ctdb_node *node = ctdb->nodes[i]; if (!ctdb_same_address(ctdb->address, &node->address)) { ctdb_ibw_node_connect(node); } } return 0; }
/* start the protocol going */ static int ctdb_tcp_connect_node(struct ctdb_node *node) { struct ctdb_context *ctdb = node->ctdb; struct ctdb_tcp_node *tnode = talloc_get_type( node->private_data, struct ctdb_tcp_node); /* startup connection to the other server - will happen on next event loop */ if (!ctdb_same_address(ctdb->address, &node->address)) { tnode->connect_te = tevent_add_timer(ctdb->ev, tnode, timeval_zero(), ctdb_tcp_node_connect, node); } return 0; }