[SCM] CTDB repository - branch master updated - ctdb-1.0.65-22-g7b41b51

Ronnie Sahlberg sahlberg at samba.org
Mon Dec 8 06:01:57 GMT 2008


The branch, master has been updated
       via  7b41b518c3ffebf1712445a8c6242509dc798003 (commit)
      from  691b9c0f1771afa564a5959405f2e7a54c334d45 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7b41b518c3ffebf1712445a8c6242509dc798003
Author: root <root at test1n1.VSOFS1.COM>
Date:   Mon Dec 8 17:29:17 2008 +1100

    If ctdbd was started with the --socket option then we also set the CTDB_SOCKET variable so that the eventscripts can pick up the name proper

-----------------------------------------------------------------------

Summary of changes:
 common/cmdline.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/common/cmdline.c b/common/cmdline.c
index ea81faf..2136bf6 100644
--- a/common/cmdline.c
+++ b/common/cmdline.c
@@ -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",


-- 
CTDB repository


More information about the samba-cvs mailing list