eventscript: use scripts array directly, rather than separate list
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 02:15:17 +0000 (12:45 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 02:15:17 +0000 (12:45 +1030)
commitb2a300768536d10bd867a987ad4cf1c5268c44bc
treec8013ed11d897049459df26cecf70c25fb54d479
parent32cfdc3aec34272612f43a3588e4cabed9c85b68
eventscript: use scripts array directly, rather than separate list

We rename ctdb_monitor_script_status to ctdb_script, and instead of
allocating them as the scripts are executed, we allocate them up front
and keep a "current" interator.

This slightly simplifies the code, though it means we only marshall up
to the last successfully run script.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/eventscript.c