diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-12 11:24:08 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-23 10:38:49 +0100 |
commit | 3419e9c4dd8f59865783e183ee2177870a776180 (patch) | |
tree | da8cf7b867b9915a802f28c36a8c2466652b1ad7 /ctdb/server/eventscript.c | |
parent | 061c2a71822cc5ecc72316c9946b2a9989b91db0 (diff) | |
download | samba-3419e9c4dd8f59865783e183ee2177870a776180.tar.gz samba-3419e9c4dd8f59865783e183ee2177870a776180.tar.xz samba-3419e9c4dd8f59865783e183ee2177870a776180.zip |
server: add "setup" event
This is needed because the "init" event can't use 'ctdb' commands.
metze
(This used to be ctdb commit 1493436b6b24eb05a23b7a339071ad85f70de8f4)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 9cd95378c1..d1effbe7ae 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -604,6 +604,7 @@ static bool check_options(enum ctdb_eventscript_call call, const char *options) switch (call) { /* These all take no arguments. */ case CTDB_EVENT_INIT: + case CTDB_EVENT_SETUP: case CTDB_EVENT_STARTUP: case CTDB_EVENT_START_RECOVERY: case CTDB_EVENT_RECOVERED: @@ -668,6 +669,7 @@ static int ctdb_event_script_callback_v(struct ctdb_context *ctdb, while in recovery */ const enum ctdb_eventscript_call allowed_calls[] = { CTDB_EVENT_INIT, + CTDB_EVENT_SETUP, CTDB_EVENT_START_RECOVERY, CTDB_EVENT_SHUTDOWN, CTDB_EVENT_RELEASE_IP, |