]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tunables: Add new tunable RecBufferSizeLimit
authorAmitay Isaacs <amitay@gmail.com>
Tue, 8 Mar 2016 06:29:31 +0000 (17:29 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 25 Mar 2016 02:26:14 +0000 (03:26 +0100)
This will be used to limit the size of record buffer sent in newer
controls for recovery and existing controls for vacuuming.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/doc/ctdb-tunables.7.xml
ctdb/protocol/protocol.h
ctdb/server/ctdb_tunables.c

index 591dcf5181f345c8cab2f9f53aa965d7f05b88e6..d2d2616217462c32e74da7e919928df32a57c980 100644 (file)
       </para>
     </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>
index a4685d635d7c69f9044fbd88759bf91a480236d9..d3ee1499d50325d8baa9abf5538a56fe4f343194 100644 (file)
@@ -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 {
index 4559aede9f2bbe788a50ce70b02534ec10e1e759..83b57f7ed2be9d43ad6665110a99a7626a00c60f 100644 (file)
@@ -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 },
 };
 
 /*