diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-19 04:07:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:43:47 -0500 |
commit | 2e8a95ced74c010261029f8ab20c346d5b692848 (patch) | |
tree | 6a4b17394b582dbff909f2232bbf5138626b6bd7 /source4/cluster/ctdb/ctdb_cluster.c | |
parent | be05a5ca2525f7f3ab732a5b5c7baceb7c7a4ada (diff) | |
download | samba-2e8a95ced74c010261029f8ab20c346d5b692848.tar.gz samba-2e8a95ced74c010261029f8ab20c346d5b692848.tar.bz2 samba-2e8a95ced74c010261029f8ab20c346d5b692848.zip |
r20892: add parameter for enabling ctdb self connect
(This used to be commit ba3ce8abe3457a1245fd4746af780c6055d39425)
Diffstat (limited to 'source4/cluster/ctdb/ctdb_cluster.c')
-rw-r--r-- | source4/cluster/ctdb/ctdb_cluster.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/cluster/ctdb/ctdb_cluster.c b/source4/cluster/ctdb/ctdb_cluster.c index df16f2f8b5..49a61ff494 100644 --- a/source4/cluster/ctdb/ctdb_cluster.c +++ b/source4/cluster/ctdb/ctdb_cluster.c @@ -95,8 +95,11 @@ void cluster_ctdb_init(struct event_context *ev) 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); |