summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging/tests/messaging.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-12-09 14:50:38 +1100
committerAmitay Isaacs <amitay@samba.org>2015-02-13 07:19:07 +0100
commit1d6ed91f5518d462ba368bca03be923428710157 (patch)
tree0244700cc813547b67d96cb5473657eb6cec44b3 /source4/lib/messaging/tests/messaging.c
parentbe19a17faf6da97365c425c5b423e9b74f9c9e0c (diff)
downloadsamba-1d6ed91f5518d462ba368bca03be923428710157.tar.gz
samba-1d6ed91f5518d462ba368bca03be923428710157.tar.xz
samba-1d6ed91f5518d462ba368bca03be923428710157.zip
ctdb-recoverd: Simplify ctdb_recovery_lock()
Have it just silently take or fail to take the lock, except on an unexpected failure (where it should log an error). This means that when it is called we need to keep the old behaviour and explicitly release the lock. In do_recovery() the lock is released and a message is printed before attempting to take the lock. In the daemon sanity check the lock must be released in the error path if it is actually taken. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'source4/lib/messaging/tests/messaging.c')
0 files changed, 0 insertions, 0 deletions