ctdb-daemon: Make ctdb_event_script_args() terminate if no scripts
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Mar 2015 09:27:45 +0000 (20:27 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 10 May 2015 01:22:14 +0000 (03:22 +0200)
commit070964dbcfd23e319eb8a5a9912ddd61ac99cf8c
tree6eee1567d9c82dae00b2c20de139c813e72df8f4
parent6808b0aa6a40e76e22070d8bde805f88a4bc899c
ctdb-daemon: Make ctdb_event_script_args() terminate if no scripts

status.done is never set to true unless event_script_callback() is
invoked.  The short-circuit in ctdb_event_script_callback_v() means
that this doesn't happen.  CTDB can't work very well without 00.ctdb
(for tunable initialisation and the like) but it shouldn't get stuck.

So call the callback when there are no scripts in
event_script_callback().

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