1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

ctdb-daemon: Return early when refusing to run an event script

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13659

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-10-10 13:35:00 +11:00 committed by Amitay Isaacs
parent d15a00babf
commit a3d12252fa

View File

@ -616,6 +616,7 @@ int ctdb_event_script_run(struct ctdb_context *ctdb,
DEBUG(DEBUG_ERR,
("Refusing to run event '%s' while in recovery\n",
ctdb_eventscript_call_names[event]));
return -1;
}
state = talloc_zero(mem_ctx, struct ctdb_event_script_run_state);