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:
parent
e2d39aefae
commit
966cef0d41
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user