summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ctdb/doc/ctdb-tunables.7.xml10
-rw-r--r--ctdb/protocol/protocol.h1
-rw-r--r--ctdb/server/ctdb_tunables.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/ctdb/doc/ctdb-tunables.7.xml b/ctdb/doc/ctdb-tunables.7.xml
index 591dcf5181f..d2d26162174 100644
--- a/ctdb/doc/ctdb-tunables.7.xml
+++ b/ctdb/doc/ctdb-tunables.7.xml
@@ -394,6 +394,16 @@
</refsect2>
<refsect2>
+ <title>RecBufferSizeLimit</title>
+ <para>Default: 1000000</para>
+ <para>
+ This is the limit on the size of the record buffer to be sent
+ in various controls. This limit is used by new controls used
+ for recovery and controls used in vacuuming.
+ </para>
+ </refsect2>
+
+ <refsect2>
<title>RecdFailCount</title>
<para>Default: 10</para>
<para>
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h
index a4685d635d7..d3ee1499d50 100644
--- a/ctdb/protocol/protocol.h
+++ b/ctdb/protocol/protocol.h
@@ -619,6 +619,7 @@ struct ctdb_tunable_list {
uint32_t samba3_hack;
uint32_t mutex_enabled;
uint32_t lock_processes_per_db;
+ uint32_t rec_buffer_size_limit;
};
struct ctdb_tickle_list {
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c
index 4559aede9f2..83b57f7ed2b 100644
--- a/ctdb/server/ctdb_tunables.c
+++ b/ctdb/server/ctdb_tunables.c
@@ -93,6 +93,7 @@ static const struct {
{ "Samba3AvoidDeadlocks", 0, offsetof(struct ctdb_tunable_list, samba3_hack), false },
{ "TDBMutexEnabled", 0, offsetof(struct ctdb_tunable_list, mutex_enabled), false },
{ "LockProcessesPerDB", 200, offsetof(struct ctdb_tunable_list, lock_processes_per_db), false },
+ { "RecBufferSizeLimit", 1000000, offsetof(struct ctdb_tunable_list, rec_buffer_size_limit), false },
};
/*