1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/server
Rusty Russell 2d9254404d eventscript: introduce enum for different event script calls.
Rather than doing strcmp everywhere, pass an explicit enum around.  This
also subtly documents what options are available.  The "options" arg
is now used for extra arguments only.

Unfortunately, gcc complains on empty format strings, so we make
ctdb_event_script() take no varargs, and add ctdb_event_script_args().  We
leave ctdb_event_script_callback() taking varargs, which means callers
have to do "%s", "".

For the moment, we have CTDB_EVENT_UNKNOWN for handling forced scripts
from the ctdb tool.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>


(This used to be ctdb commit 8001488be4f2beb25e943fe01b2afc2e8779930d)
2009-11-24 11:16:49 +10:30
..
ctdb_banning.c new prototype banning code 2009-09-04 02:20:39 +10:00
ctdb_call.c Revert "From Wolfgang M." 2009-10-29 13:44:12 +11:00
ctdb_control.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30
ctdb_daemon.c start the syslog child a little later, after we have forked and detached from the local shell 2009-10-30 19:39:11 +11:00
ctdb_freeze.c if a lock wait child died/finished, we could have released the lockwait handle and set it to NULL before we call the destructors for releaseing the waiters. 2009-10-22 13:41:28 +11:00
ctdb_keepalive.c add a new node state : DELETED. 2009-06-01 14:18:34 +10:00
ctdb_lockwait.c add logging everytime we create a filedescriptor in the main ctdb daemon 2009-10-15 11:24:54 +11:00
ctdb_logging.c start the syslog child a little later, after we have forked and detached from the local shell 2009-10-30 19:39:11 +11:00
ctdb_ltdb_server.c move the check to skip vacuuming on persistent database to the ctdb_vacuuming_init() function 2009-11-03 10:48:27 +11:00
ctdb_monitor.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30
ctdb_persistent.c server: fix debug message in trans2_commit (refusing persistent store during transaction) 2009-10-30 09:29:25 +11:00
ctdb_recover.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30
ctdb_recoverd.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30
ctdb_server.c make it possible to start the daemon in STOPPED mode 2009-07-09 11:57:20 +10:00
ctdb_serverids.c merge from ronnie 2008-02-04 20:07:15 +11:00
ctdb_takeover.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30
ctdb_traverse.c add logging everytime we create a filedescriptor in the main ctdb daemon 2009-10-15 11:24:54 +11:00
ctdb_tunables.c test of a change to make ctdbd use "status" event instead of the "monitor" event. 2009-11-13 12:37:55 +11:00
ctdb_uptime.c track both when we last started and ended a recovery. 2008-07-02 13:55:59 +10:00
ctdb_vacuum.c dont use the pointer after it has been talloc_free()d. 2009-11-05 16:07:23 +11:00
ctdbd.c start the syslog child a little later, after we have forked and detached from the local shell 2009-10-30 19:39:11 +11:00
eventscript.c eventscript: introduce enum for different event script calls. 2009-11-24 11:16:49 +10:30