ctdb-daemon: Support per-node robust mutex feature
authorAmitay Isaacs <amitay@gmail.com>
Sun, 10 Nov 2013 13:32:31 +0000 (00:32 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 9 Jul 2014 04:45:17 +0000 (06:45 +0200)
commit55fbe364b93000c7766e95e16fa35cc6a80c697b
tree8ab8e316a8c8ff4667576a74145d4a66c0fd7d13
parent2e7b0870ec1014f8320032b86dc54f0a6fd55776
ctdb-daemon: Support per-node robust mutex feature

To enable TDB mutex support, set tunable TDBMutexEnabled=1.

When databases are attached for the first time, attach flags must include
TDB_MUTEX_LOCKING and TDBMutexEnabled must set to enable mutex support.

However, when CTDB attaches databases internally for recovery, it will
enable mutex support if TDBMutexEnabled is set.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Jul  9 06:45:17 CEST 2014 on sn-devel-104
ctdb/client/ctdb_client.c
ctdb/include/ctdb_private.h
ctdb/server/ctdb_ltdb_server.c
ctdb/server/ctdb_tunables.c