eventscript: pass struct ctdb_log_state directly to ctdb_log_handler().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 14:01:29 +0000 (00:31 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 14:01:29 +0000 (00:31 +1030)
commit497766cf186442de00fb324343150442457be858
treebbe698f126693078ab3f41eddd40791758aa72f2
parent391926a87a7af73840f10bb314c0a2f951a0854c
eventscript: pass struct ctdb_log_state directly to ctdb_log_handler().

The current logging logic assumes that any stdout/stderr belongs to
the currently running monitor script output.  This isn't quite right
anyway, and we'd like to capture stderr output of other script
invocations.

So we move towards multiple struct ctdb_log_state by handing it
directly to ctdb_log_handler to use, rather than having it assume
ctdb->log.  We need a ctdb pointer inside the log struct now though.

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