eventscript: use wire format internally for script status.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 02:18:17 +0000 (12:48 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Dec 2009 02:18:17 +0000 (12:48 +1030)
commitfd2f04554e604bc421806be96b987e601473a9b8
tree88f3766f2a406553680b1376d7ca18986001b491
parentf5cb41ecf3fa986b8af243e8546eb3b985cd902a
eventscript: use wire format internally for script status.

The only difference between the exposed an internal structure now is
that the name and output fields were pointers.  Switch to using
ctdb_scripts_wire/ctdb_script_wire internally as well so marshalling
is a noop.

We now reject scripts which are too long and truncate logging to the
511 characters we have space for (the entire output will be in the
normal ctdbd log).

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