]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdbd_conn: Remove unused ctdbd_messaging_connection
authorVolker Lendecke <vl@samba.org>
Tue, 5 Apr 2016 08:14:11 +0000 (10:14 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Apr 2016 16:29:20 +0000 (18:29 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c

index a4eab74fe7372061fae8f1866877cf11b8d0ebd1..bcaa09476032ee69685597cdca3b5e523ca22590 100644 (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,
index 2751850452459305839917db0daf3a4df9137248..9cceeb15d803e7c4cb4b81eab35da5ca93e9dc00 100644 (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;