If ctdbd was started with the --socket option then we also set the CTDB_SOCKET variab...
authorroot <root@test1n1.VSOFS1.COM>
Mon, 8 Dec 2008 06:29:17 +0000 (17:29 +1100)
committerroot <root@test1n1.VSOFS1.COM>
Mon, 8 Dec 2008 06:29:17 +0000 (17:29 +1100)
(This used to be ctdb commit 7b41b518c3ffebf1712445a8c6242509dc798003)

ctdb/common/cmdline.c

index ea81fafe47cf29986ed8f6c1f0ec568da6ec67c8..2136bf637b563e21bf93aa182eb50c0ec5a7c387 100644 (file)
@@ -82,6 +82,7 @@ struct ctdb_context *ctdb_cmdline_init(struct event_context *ev)
 
        /* command line specified a socket name */
        if (ctdb_cmdline.socketname != NULL) {
+               setenv("CTDB_SOCKET", ctdb_cmdline.socketname, 1);
                ret = ctdb_set_socketname(ctdb, ctdb_cmdline.socketname);
                if (ret == -1) {
                        printf("ctdb_set_socketname failed - %s\n",