summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-02-11 17:29:26 +1100
committerMartin Schwenke <martins@samba.org>2014-02-12 08:47:47 +0100
commit276b233c0090d51b59dbe06ae66a14ee09cbb4c2 (patch)
tree314d44faae5f80cbeb2e41db4f3ff05e445c3ccd /ctdb
parent9a2a5a2f7c7d3d6b4c03bb97e134ca0452a83bb8 (diff)
downloadsamba-276b233c0090d51b59dbe06ae66a14ee09cbb4c2.tar.gz
samba-276b233c0090d51b59dbe06ae66a14ee09cbb4c2.tar.xz
samba-276b233c0090d51b59dbe06ae66a14ee09cbb4c2.zip
ctdb-daemon: Consult CTDB_DEBUG_HUNG_SCRIPT variable before running debug script
If CTDB_DEUB_HUNG_SCRIPT is set, use that instead of the default debug script. This code was dropped by mistake in commit 18c1f432102f1a5093927be9276d001180539e50. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Feb 12 08:47:47 CET 2014 on sn-devel-104
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/eventscript.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index b85fed5944..ed20124bb0 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -456,6 +456,10 @@ static void ctdb_run_debug_hung_script(struct ctdb_context *ctdb, struct debug_h
return;
}
+ if (getenv("CTDB_DEBUG_HUNG_SCRIPT") != NULL) {
+ debug_hung_script = getenv("CTDB_DEBUG_HUNG_SCRIPT");
+ }
+
argv = talloc_array(state, const char *, 5);
argv[0] = talloc_asprintf(argv, "%d", fd[1]);