eventscript: get rid of ctdb_control_event_script_finished altogether
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 01:59:10 +0000 (12:29 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 01:59:10 +0000 (12:29 +1030)
commitc1ba1392fe52762960e896ace0aca0ee4faa94d5
treee642209d4b020e2be89796ed9569645a9a2d2d7d
parentc73ea56275d4be76f7ed983d7565b20237dbdce3
eventscript: get rid of ctdb_control_event_script_finished altogether

We always have to call it before freeing the state; we should just do
this work in the destructor itself.

Unfortunately, the script state would already be freed by the time
the state destructor is called, so we make the script state a child of
ctdb, and talloc_free() it manually on the one path which doesn't use
the destructor.

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