svn commit: samba r20892 - in
branches/SAMBA_4_0/source/cluster/ctdb: .
tridge at samba.org
tridge at samba.org
Fri Jan 19 04:07:21 GMT 2007
Author: tridge
Date: 2007-01-19 04:07:21 +0000 (Fri, 19 Jan 2007)
New Revision: 20892
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20892
Log:
add parameter for enabling ctdb self connect
Modified:
branches/SAMBA_4_0/source/cluster/ctdb/ctdb_cluster.c
Changeset:
Modified: branches/SAMBA_4_0/source/cluster/ctdb/ctdb_cluster.c
===================================================================
--- branches/SAMBA_4_0/source/cluster/ctdb/ctdb_cluster.c 2007-01-19 03:58:16 UTC (rev 20891)
+++ branches/SAMBA_4_0/source/cluster/ctdb/ctdb_cluster.c 2007-01-19 04:07:21 UTC (rev 20892)
@@ -95,9 +95,12 @@
ctdb_errstr(state->ctdb)));
goto failed;
}
-
-// ctdb_set_flags(state->ctdb, CTDB_FLAG_SELF_CONNECT);
+ if (lp_parm_bool(-1, "ctdb", "selfconnect", False)) {
+ DEBUG(0,("Enabling ctdb selfconnect\n"));
+ ctdb_set_flags(state->ctdb, CTDB_FLAG_SELF_CONNECT);
+ }
+
/* tell ctdb what address to listen on */
ret = ctdb_set_address(state->ctdb, address);
if (ret == -1) {
More information about the samba-cvs
mailing list