ctdb: enable mutexes for volatile TDBs by default
authorRalph Boehme <slow@samba.org>
Sun, 9 Jul 2017 14:20:11 +0000 (16:20 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 12 Jul 2017 07:01:17 +0000 (09:01 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/tunable.c
ctdb/config/ctdbd.conf
ctdb/doc/ctdb-tunables.7.xml
ctdb/doc/ctdb.1.xml
ctdb/tests/tool/ctdb.listvars.001.sh

index ed7a52da15382ab7e550e5a8e614d40ba7d37c86..14f6828bd15995014b0d9382e1c6bf002f67b8d6 100644 (file)
@@ -145,7 +145,7 @@ static struct {
                offsetof(struct ctdb_tunable_list, no_ip_host_on_all_disabled) },
        { "Samba3AvoidDeadlocks", 0, true,
                offsetof(struct ctdb_tunable_list, samba3_hack) },
-       { "TDBMutexEnabled", 0, false,
+       { "TDBMutexEnabled", 1, false,
                offsetof(struct ctdb_tunable_list, mutex_enabled) },
        { "LockProcessesPerDB", 200, false,
                offsetof(struct ctdb_tunable_list, lock_processes_per_db) },
index e75c65c7fd78cfca4535dfe9387e3c6e4efc36c7..2d525c528fdf210d3b68faced19b9458a32fb179 100644 (file)
@@ -29,4 +29,4 @@
 # CTDB_DEBUGLEVEL=ERR
 
 # Set some CTDB tunable variables during CTDB startup?
-# CTDB_SET_TDBMutexEnabled=1
+# CTDB_SET_TDBMutexEnabled=0
index d0bb4508e240753bc639ef59d45f47d7a77e5e88..7b059b75a9e1d079a907931d0eac24bc43d75bb4 100644 (file)
 
     <refsect2>
       <title>TDBMutexEnabled</title>
-      <para>Default: 0</para>
+      <para>Default: 1</para>
       <para>
        This parameter enables TDB_MUTEX_LOCKING feature on volatile
        databases if the robust mutexes are supported. This optimizes the
index 1af1f5048c563c8b9eb22502afe9d34a052b47ba..3aceb7369ac4db4dc75b1662a3cddd170dc1aaae 100644 (file)
@@ -843,7 +843,7 @@ DBRecordSizeWarn        = 10000000
 DBSizeWarn              = 100000000
 PullDBPreallocation     = 10485760
 NoIPHostOnAllDisabled   = 0
-TDBMutexEnabled         = 0
+TDBMutexEnabled         = 1
 LockProcessesPerDB      = 200
 RecBufferSizeLimit      = 1000000
 QueueBufferSize         = 1024
index f6010a45c774eaad675c01e973571fdbc96b92ae..fc8f42ce067f9a2ec5f410dfa71e1b0bfb310906 100755 (executable)
@@ -59,7 +59,7 @@ DBRecordSizeWarn           = 10000000
 DBSizeWarn                 = 100000000
 PullDBPreallocation        = 10485760
 NoIPHostOnAllDisabled      = 0
-TDBMutexEnabled            = 0
+TDBMutexEnabled            = 1
 LockProcessesPerDB         = 200
 RecBufferSizeLimit         = 1000000
 QueueBufferSize            = 1024