Node has been found, so use the pre-constructed name instead of
calling ctdb_addr_to_str().
This will also print the port, which might be useful if we ever add
the ability to also specify ports in the nodes list.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
if (tnode == NULL) {
/* This can't happen - see ctdb_tcp_initialise() */
DBG_ERR("INTERNAL ERROR setting up connection from node %s\n",
- ctdb_addr_to_str(&addr));
+ node->name);
close(fd);
return;
}
if (tnode->in_queue != NULL) {
DBG_ERR("Incoming queue active, rejecting connection from %s\n",
- ctdb_addr_to_str(&addr));
+ node->name);
close(fd);
return;
}
ctdb_tcp_read_cb,
node,
"ctdbd-%s",
- ctdb_addr_to_str(&addr));
+ node->name);
if (tnode->in_queue == NULL) {
DBG_ERR("Failed to set up incoming queue\n");
close(fd);