summaryrefslogtreecommitdiff
path: root/source4/cluster/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-01-19 04:32:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:48 -0500
commitfaf800d871b72ca4938c5f392d8b6183cce16e9d (patch)
tree9fafe57a05502cb1aa5f849513505b90bdfcd3a8 /source4/cluster/ctdb/include
parent864e228f504d0c73b78681fb69884783c7c689f2 (diff)
downloadsamba-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/include')
-rw-r--r--source4/cluster/ctdb/include/ctdb.h5
-rw-r--r--source4/cluster/ctdb/include/ctdb_private.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/include/ctdb.h b/source4/cluster/ctdb/include/ctdb.h
index 21b9b5d1ce..f2f4bcef84 100644
--- a/source4/cluster/ctdb/include/ctdb.h
+++ b/source4/cluster/ctdb/include/ctdb.h
@@ -59,6 +59,11 @@ int ctdb_set_transport(struct ctdb_context *ctdb, const char *transport);
void ctdb_set_flags(struct ctdb_context *ctdb, unsigned flags);
/*
+ set max acess count before a dmaster migration
+*/
+void ctdb_set_max_lacount(struct ctdb_context *ctdb, unsigned count);
+
+/*
tell ctdb what address to listen on, in transport specific format
*/
int ctdb_set_address(struct ctdb_context *ctdb, const char *address);
diff --git a/source4/cluster/ctdb/include/ctdb_private.h b/source4/cluster/ctdb/include/ctdb_private.h
index d373e3af32..89643eff0f 100644
--- a/source4/cluster/ctdb/include/ctdb_private.h
+++ b/source4/cluster/ctdb/include/ctdb_private.h
@@ -93,6 +93,7 @@ struct ctdb_context {
const struct ctdb_methods *methods; /* transport methods */
const struct ctdb_upcalls *upcalls; /* transport upcalls */
void *private; /* private to transport */
+ unsigned max_lacount;
};
#define CTDB_NO_MEMORY(ctdb, p) do { if (!(p)) { \
@@ -115,7 +116,7 @@ struct ctdb_context {
/* number of consecutive calls from the same node before we give them
the record */
-#define CTDB_MAX_LACOUNT 7000
+#define CTDB_DEFAULT_MAX_LACOUNT 7
/*
the extended header for records in the ltdb