daemon: Add a tunable to enable automatic database priority setting
commita73f13ada7acf1cad75851264357d9ca6ccdec4b
authorAmitay Isaacs <amitay@gmail.com>
Fri, 4 Jan 2013 03:32:55 +0000 (4 14:32 +1100)
committerMichael Adam <obnox@samba.org>
Sat, 5 Jan 2013 00:14:57 +0000 (5 01:14 +0100)
tree2eff321105943566742b7b62a1b4ae8895ed4a66
parent13518b9e331b44981906d92c6cbe3a8ed3c5474a
daemon: Add a tunable to enable automatic database priority setting

Samba versions 3.6.x and older do not set the database priority.
This can cause deadlock between Samba and CTDB since the locking order
of database will be different. A hack was added for automatic promotion
of priority for specific databases to avoid deadlock.  This code should
not be invoked with Samba version 4.x which correctly specifies the
priority for each database.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 4a9e96ad3d8fc46da1cd44cd82309c1b54301eb7)
ctdb/doc/ctdbd.1.xml
ctdb/include/ctdb_private.h
ctdb/server/ctdb_lock.c
ctdb/server/ctdb_tunables.c