]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Return early when refusing to run an event script
authorMartin Schwenke <martin@meltin.net>
Wed, 10 Oct 2018 02:35:00 +0000 (13:35 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2018 08:26:13 +0000 (09:26 +0100)
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>
(cherry picked from commit a3d12252fa8e0a7e900b819dec30bdb9da458254)

ctdb/server/eventscript.c

index 157f6535362dae7f26f0e4a8b1c9dd55f73ed792..1f70ef5addf81a5c7f71b8f573356572925977a8 100644 (file)
@@ -661,6 +661,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);