]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdbd_conn: Use ctdbd_init_connection in ctdbd_probe
authorVolker Lendecke <vl@samba.org>
Tue, 5 Apr 2016 07:52:01 +0000 (09:52 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Apr 2016 16:29:20 +0000 (18:29 +0200)
We are only interested in ctdb connectability here.
ctdbd_messaging_connection() does a few more calls not required here

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdbd_conn.c

index bb8ab0a66781a8c20391342541d3e04a3817eb40..3cec2535f7267586c67a128d6a010f41257f7773 100644 (file)
@@ -1304,8 +1304,8 @@ int ctdbd_probe(const char *sockname, int timeout)
        struct ctdbd_connection *conn = NULL;
        int ret;
 
-       ret = ctdbd_messaging_connection(talloc_tos(), sockname, timeout,
-                                        &conn);
+       ret = ctdbd_init_connection(talloc_tos(), sockname, timeout,
+                                   &conn);
 
        /*
         * We only care if we can connect.