diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-19 04:32:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:43:48 -0500 |
commit | faf800d871b72ca4938c5f392d8b6183cce16e9d (patch) | |
tree | 9fafe57a05502cb1aa5f849513505b90bdfcd3a8 /source4/cluster/ctdb/ctdb_cluster.c | |
parent | 864e228f504d0c73b78681fb69884783c7c689f2 (diff) | |
download | samba-faf800d871b72ca4938c5f392d8b6183cce16e9d.tar.gz samba-faf800d871b72ca4938c5f392d8b6183cce16e9d.tar.bz2 samba-faf800d871b72ca4938c5f392d8b6183cce16e9d.zip |
r20896: make the maximum lacount configurable in smb.conf
at the moment the brlock_ctdb backend will sometimes fail after
dmaster migrations. So to pass tests this needs to be set high. Thats
a priority to fix.
(This used to be commit 45f5c272f366f6a793941d97c9522c5b2b0cb639)
Diffstat (limited to 'source4/cluster/ctdb/ctdb_cluster.c')
-rw-r--r-- | source4/cluster/ctdb/ctdb_cluster.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/ctdb_cluster.c b/source4/cluster/ctdb/ctdb_cluster.c index 49a61ff494..183d5c1831 100644 --- a/source4/cluster/ctdb/ctdb_cluster.c +++ b/source4/cluster/ctdb/ctdb_cluster.c @@ -68,7 +68,7 @@ void cluster_ctdb_init(struct event_context *ev) const char *address; const char *transport; struct cluster_state *state; - int ret; + int ret, lacount; nlist = lp_parm_string(-1, "ctdb", "nlist"); if (nlist == NULL) return; @@ -101,6 +101,11 @@ void cluster_ctdb_init(struct event_context *ev) ctdb_set_flags(state->ctdb, CTDB_FLAG_SELF_CONNECT); } + lacount = lp_parm_int(-1, "ctdb", "maxlacount", -1); + if (lacount != -1) { + ctdb_set_max_lacount(state->ctdb, lacount); + } + /* tell ctdb what address to listen on */ ret = ctdb_set_address(state->ctdb, address); if (ret == -1) { |