1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdbd_conn: "sockname" is not needed anymore

Previously it was used in ctdb_traverse(), but with ff72a8a this is no longer
the case

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2016-04-19 21:40:40 +02:00 committed by Ralph Boehme
parent 0b8896d51e
commit 120f86755a

View File

@ -47,7 +47,6 @@ struct ctdbd_srvid_cb {
};
struct ctdbd_connection {
const char *sockname; /* Needed in ctdbd_traverse */
struct messaging_context *msg_ctx;
uint32_t reqid;
uint32_t our_vnn;
@ -433,20 +432,13 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
conn->sockname = talloc_strdup(conn, sockname);
if (conn->sockname == NULL) {
DBG_ERR("talloc failed\n");
ret = ENOMEM;
goto fail;
}
conn->timeout = timeout;
if (conn->timeout == 0) {
conn->timeout = -1;
}
ret = ctdbd_connect(conn->sockname, &conn->fd);
ret = ctdbd_connect(sockname, &conn->fd);
if (ret != 0) {
DEBUG(1, ("ctdbd_connect failed: %s\n", strerror(ret)));
goto fail;