1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdbd_conn: Remove unused ctdbd_messaging_connection

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2016-04-05 10:14:11 +02:00 committed by Ralph Boehme
parent e2d39aefae
commit 966cef0d41
2 changed files with 0 additions and 34 deletions

View File

@ -30,10 +30,6 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
const char *sockname, int timeout,
struct ctdbd_connection **pconn);
int ctdbd_messaging_connection(TALLOC_CTX *mem_ctx,
const char *sockname, int timeout,
struct ctdbd_connection **pconn);
uint32_t ctdbd_vnn(const struct ctdbd_connection *conn);
int ctdbd_register_msg_ctx(struct ctdbd_connection *conn,

View File

@ -484,36 +484,6 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
return ret;
}
/*
* Get us a ctdbd connection and register us as a process
*/
int ctdbd_messaging_connection(TALLOC_CTX *mem_ctx,
const char *sockname, int timeout,
struct ctdbd_connection **pconn)
{
struct ctdbd_connection *conn;
int ret;
ret = ctdbd_init_connection(mem_ctx, sockname, timeout, &conn);
if (ret != 0) {
return ret;
}
ret = register_with_ctdbd(conn, MSG_SRVID_SAMBA, NULL, NULL);
if (ret != 0) {
goto fail;
}
*pconn = conn;
return 0;
fail:
TALLOC_FREE(conn);
return ret;
}
struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn)
{
return conn->msg_ctx;