1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/server
Martin Schwenke 41cd44724e ctdb-mutex: Add support for exiting if the lock file disappears
If the lock file is inaccessible or the inode number changes then the
lock is lost, so exit.  This allows the recovery daemon to trigger an
election.  The ensuing recovery will re-take the lock.

By default the lock file is checked every 60 seconds.  A lot can
happen in 60 seconds but being more aggressive and accessing the lock
too often could result in a performance issue for the cluster
filesystem.

An new optional 2nd argument is added, which is the lock file re-check
time in seconds.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-07-26 03:34:17 +00:00
..
ctdb_banning.c ctdb:banning: Improve debug message in ctdb_ban_node_event() 2016-06-01 14:02:20 +02:00
ctdb_call.c ctdb-daemon: Divide by 2 when calculating hop count bucket 2018-12-18 02:02:03 +01:00
ctdb_client.c ctdb-daemon: Fix signed/unsigned comparisons by casting 2019-07-05 05:03:23 +00:00
ctdb_cluster_mutex.c ctdb-mutex: Drop dependency on ctdb_set_helper 2019-07-26 03:34:17 +00:00
ctdb_cluster_mutex.h ctdb-cluster-mutex: Fix #endif decoration 2016-06-08 04:52:18 +02:00
ctdb_config.c ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb_config.h ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb_control.c debug: Use debuglevel_(get|set) function 2018-11-08 11:03:11 +01:00
ctdb_daemon.c ctdb-daemon: Don't index by PNN when initialising node flags 2019-07-05 05:03:24 +00:00
ctdb_fork.c ctdb-daemon: Add ctdb_vfork_exec() 2016-12-05 08:09:23 +01:00
ctdb_freeze.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_keepalive.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_lock_helper.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_lock.c ctdb-daemon: Don't check if lock_ctx->ctdb_db is NULL 2019-07-05 05:03:25 +00:00
ctdb_logging.c ctdb-daemon: Drop unused function ctdb_vfork_with_logging() 2019-07-05 05:03:24 +00:00
ctdb_ltdb_server.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_monitor.c ctdb-daemon: Switch to using ETIMEDOUT instead of ETIME 2018-07-28 03:50:10 +02:00
ctdb_mutex_fcntl_helper.c ctdb-mutex: Add support for exiting if the lock file disappears 2019-07-26 03:34:17 +00:00
ctdb_persistent.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_recover.c ctdb-recovery: Fix signed/unsigned comparisons by declaring as unsigned 2019-06-05 10:25:50 +00:00
ctdb_recoverd.c ctdb-recoverd: Periodically log recovery master of incomplete cluster 2019-07-26 03:34:16 +00:00
ctdb_recovery_helper.c ctdb: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
ctdb_server.c ctdb-daemon: Replace function ctdb_ip_to_nodeid() with ctdb_ip_to_pnn() 2019-07-05 05:03:23 +00:00
ctdb_statistics.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_takeover_helper.c ctdb-daemon: Drop unused values assigned to variable 2019-07-05 05:03:23 +00:00
ctdb_takeover.c ctdb-daemon: Fix signed/unsigned comparisons by using constant 2019-07-05 05:03:23 +00:00
ctdb_traverse.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_tunables.c ctdb-daemon: Use refactored tunable code 2016-07-25 21:29:46 +02:00
ctdb_tunnel.c ctdb-daemon: Add code to process ctdb_req_tunnel packets 2017-10-10 11:45:19 +02:00
ctdb_update_record.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdb_uptime.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_vacuum.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ctdbd.c ctdb-daemon: Exit with error if a database directory does not exist 2018-12-03 06:56:41 +01:00
eventscript.c ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsigned 2019-07-05 05:03:23 +00:00
ipalloc_common.c ctdb-ipalloc: Avoid -1 as a PNN, use CTDB_UNKNOWN_PNN instead 2019-06-05 10:25:50 +00:00
ipalloc_deterministic.c ctdb-takeover: IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPs 2016-12-19 04:07:08 +01:00
ipalloc_lcp2.c ctdb-ipalloc: Fix warning about unused value assigned to srcimbl 2019-06-05 10:25:50 +00:00
ipalloc_nondeterministic.c ctdb-ipalloc: Avoid -1 as a PNN, use CTDB_UNKNOWN_PNN instead 2019-06-05 10:25:50 +00:00
ipalloc_private.h ctdb-ipalloc: Fix signed/unsigned comparisons by declaring as unsigned 2019-06-05 10:25:50 +00:00
ipalloc.c ctdb-ipalloc: Avoid -1 as a PNN, use CTDB_UNKNOWN_PNN instead 2019-06-05 10:25:50 +00:00
ipalloc.h ctdb-daemon: Drop the noiphost "node flags" bitmap 2018-07-11 11:48:38 +02:00
legacy_conf.c ctdb-config: Change option "no realtime" option to "realtime scheduling" 2018-08-24 10:59:20 +02:00
legacy_conf.h ctdb-config: Change option "no realtime" option to "realtime scheduling" 2018-08-24 10:59:20 +02:00