1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/include
Martin Schwenke 1d6ed91f55 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>
2015-02-13 07:19:07 +01:00
..
internal ctdb-includes: Reorder includes.h more logically 2014-10-31 03:46:40 +01:00
public ctdb-build: Fix handling of public headers 2014-10-06 14:56:06 +02:00
ctdb_client.h ctdb-logging: New option CTDB_LOGGING, remove CTDB_LOGFILE, CTDB_SYSLOG 2014-10-28 05:42:04 +01:00
ctdb_logging.h ctdb-logging: New option CTDB_LOGGING, remove CTDB_LOGFILE, CTDB_SYSLOG 2014-10-28 05:42:04 +01:00
ctdb_private.h ctdb-recoverd: Simplify ctdb_recovery_lock() 2015-02-13 07:19:07 +01:00
ctdb_protocol.h ctdb: ctdb_protocol.h references struct sockaddr 2014-12-07 00:12:07 +01:00
ctdb_typesafe_cb.h rename ccan/typesafe_cb.h to ctdb_typesafe_cb.h and 2010-06-02 09:18:48 +10:00
ctdb.h libctdb: add ctdb_getcapabilities() 2012-09-28 17:05:34 +10:00