1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/server
Martin Schwenke 46edef25df ctdb-recovery: Limit scope of reclock latency statistics
It does not make sense to update this statistic for the timeout case,
since this could skew the statistic.  To keep it simple, just update
it for the usual case where there is lock contention, since this is
the usual case.  So the daemon statistic measures time to test the
lock and the corresponding recovery daemon statistic measures time to
take the lock.

Additionally, the recovery daemon will eventually use this code to
take the lock, and the method of updating the latency statistic will
need to be pushed further out to a configurable handler that depends
on the calling context.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Feb 23 10:32:06 CET 2016 on sn-devel-144
2016-02-23 10:32:06 +01:00
..
ctdb_banning.c ctdb-daemon: Drop handling of ban control sent to unexpected node 2015-12-04 09:17:17 +01:00
ctdb_call.c ctdb: Use ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00
ctdb_control.c ctdb: NAT gateway capability and control to set it are obsolete 2016-01-27 18:35:24 +01:00
ctdb_daemon.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
ctdb_event_helper.c ctdb-daemon: Remove dependency on includes.h 2015-10-30 02:00:27 +01:00
ctdb_fork.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_freeze.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_keepalive.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_lock_helper.c ctdb: Use ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00
ctdb_lock.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
ctdb_logging_file.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_logging_syslog.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_logging.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
ctdb_ltdb_server.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_monitor.c ctdb-recoverd: Fix some uninitialised memory issues 2016-01-12 19:16:17 +01:00
ctdb_persistent.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_recover.c ctdb-recovery: Limit scope of reclock latency statistics 2016-02-23 10:32:06 +01:00
ctdb_recoverd.c ctdb-recovery: Create recovery databases in state dir 2016-02-11 08:01:14 +01:00
ctdb_recovery_helper.c ctdb-recovery: Add a log message when marshalling recovery database fails 2016-02-12 05:32:16 +01:00
ctdb_server.c Revert "ctdb-daemon: Check packet generation against database generation" 2016-02-09 12:39:24 +01:00
ctdb_serverids.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_statistics.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_takeover.c ctdb: Use ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00
ctdb_traverse.c ctdb: Use ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00
ctdb_tunables.c ctdb-daemon: Rename EventScriptTimeoutCount to MonitorTimeoutCount 2015-11-16 08:42:11 +01:00
ctdb_update_record.c ctdb: Use ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01: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: Drop the "schedule for deletion" messages to DEBUG level 2016-01-12 19:16:17 +01:00
ctdbd.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
eventscript.c ctdb-daemon: Reset script timeout count in monitor code 2015-11-16 08:42:11 +01:00
ipalloc_common.c ctdb: Fix CID 1353176 Logically dead code 2016-02-16 16:41:18 +01:00
ipalloc_deterministic.c ctdb-ipalloc: Split IP allocation into its own build subsystem 2016-01-13 20:18:20 +01:00
ipalloc_lcp2.c ctdb/server: fix gcc6 build warning. 2016-02-07 00:56:44 +01:00
ipalloc_nondeterministic.c ctdb-ipalloc: Split IP allocation into its own build subsystem 2016-01-13 20:18:20 +01:00
ipalloc_private.h ctdb-ipalloc: Split IP allocation into its own build subsystem 2016-01-13 20:18:20 +01:00
ipalloc.c ctdb: Fix the O3 developer build 2016-01-14 19:37:19 +01:00
ipalloc.h ctdb-ipalloc: Remove most uses of struct ctdb_public_ip_list_old 2016-02-12 08:40:21 +01:00