ctdbd: Backport use of external script to debug hung eventscript
authorMartin Schwenke <martin@meltin.net>
Thu, 17 May 2012 00:17:51 +0000 (10:17 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 6 May 2013 23:36:30 +0000 (09:36 +1000)
commit3a01839e650e47663f22a731486b9297030a6524
treea918b91573229a5ad62e84605a2a74e869864281
parentefb72d75201a22905e12cb3b92240054ad36068c
ctdbd: Backport use of external script to debug hung eventscript

This is a cherry-pick from 6e68797af67bee36f2bad045f94806e7e98f27e9,
combined with several recent fixes:

  8507303b525d20c74e8ec4e7c4f5f275945cd3b6
    scripts: debug-hung-script.sh doesn't need functions/loadconfig
  501461cc3e132d4adee9e91b5d4513a26bae2846
    ctdbd: Remove debug_hung_script_ctx
  0581f9a84e58764d194f4e04064c2c5b393c348b
    ctdbd: Remove command-line option --debug-hung-script
  3400b2ed34b6eb9496eb55f1aab6f89d2952060d
    ctdbd: Complain loudly if CTDB_DEBUG_HUNG_SCRIPT script isn't executable
  9b0d56b16775aa16f33bdfdf831256e085fa3339
    ctdbd: Don't use a fixed length buffer for the hung script command

Signed-off-by: Martin Schwenke <martin@meltin.net>
Cherry-pick-from: b86270fae7fd9f8a7a718e15d8c7436a918f28c4
Makefile.in
config/ctdb.init
config/ctdb.sysconfig
config/debug-hung-script.sh [new file with mode: 0644]
packaging/RPM/ctdb.spec.in
server/eventscript.c