summaryrefslogtreecommitdiff
path: root/source4/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'source4/cluster')
-rw-r--r--source4/cluster/ctdb/ctdb_cluster.c7
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);