1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/config
Martin Schwenke 2ad1604c2b ctdb-scripts: Avoid no-op "ctdb ptrans" call
This causes unnecessary g_lock activity and overhead.

This could be optimised in ctdb.c:control_ptrans().  However, that
makes the code more complex.  Let's only do that if we get more
potentially no-op uses.

Note no optimisation is needed in the "notify" case because there is
already an early exit if there are no items.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-03-01 19:39:15 +01:00
..
events.d ctdb-scripts: Add default for public addresses file where missing 2018-03-01 19:39:14 +01:00
nfs-checks.d ctdb-scripts: Move 60.nfs Ganesha callout to doc/examples/ 2015-07-21 07:54:09 +02:00
ctdb-crash-cleanup.sh ctdb-scripts: Fix calculation of CTDB_BASE 2016-11-03 10:10:31 +01:00
ctdb.init ctdb-scripts: Avoid shellcheck warning SC2039 (echo -n) 2016-07-21 02:24:26 +02:00
ctdb.service systemd: Add documentation to Unit files 2018-01-14 17:38:26 +01:00
ctdb.sudoers ctdb-scripts: Update important installed files to use build-time defaults 2015-09-15 08:56:21 +02:00
ctdbd_wrapper ctdb-common: Drop debugging variable CTDB_EXTERNAL_TRACE 2018-03-01 19:39:15 +01:00
ctdbd.conf ctdb: enable mutexes for volatile TDBs by default 2017-07-12 09:01:17 +02:00
debug_locks.sh ctdb-scripts: Fix calculation of CTDB_BASE 2016-11-03 10:10:31 +01:00
debug-hung-script.sh ctdb-scripts: Ignore shellcheck SC2181 warning (use of $?) 2017-08-14 05:15:25 +02:00
functions ctdb-scripts: Add default for public addresses file where missing 2018-03-01 19:39:14 +01:00
nfs-linux-kernel-callout ctdb-scripts: Avoid shellcheck warning SC2039 (test -nt operator) 2016-07-21 02:24:26 +02:00
notify.d.README scripts: Rework notify.sh to use notify.d/ directory 2013-05-23 16:18:23 +10:00
notify.sh ctdb-scripts: Quote some variable expansions 2016-07-06 08:15:49 +02:00
README Eventscript support - Remove unused interface_modify.sh 2012-03-22 15:30:27 +11:00
statd-callout ctdb-scripts: Avoid no-op "ctdb ptrans" call 2018-03-01 19:39:15 +01:00

This directory contains run-time support scripts for CTDB.

Selected highlights:

  ctdb.init

    An initscript for starting ctdbd at boot time.

  events.d/

    Eventscripts.  See events.d/README for more details.

  functions

    Support functions, sourced by eventscripts and other scripts.

  statd-callout

    rpc.statd high-availability callout to support lock migration on
    failover.

Notes:

* All of these scripts are written in POSIX Bourne shell.  Please
  avoid bash-isms, including the use of "local" variables (which are
  not available in POSIX shell).

* Do not use absolute paths for commands.  Unit tests attempt to
  replace many commands with stubs and can not do this if commands are
  specified with absolute paths.  The functions file controls $PATH so
  absolute paths should not be required.