mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
ctdbd: When the "setup" event fails log an error and exit, don't abort
The "setup" event can fail when one of the eventscripts fails to run its "setup" event. If this occurs then the eventscript should log an error. The stack trace and core file generated when we abort provides no useful information. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit c50eca6fbf49a6c7bf50905334704f8d2d3237d7)
This commit is contained in:
parent
a989a299d1
commit
94b0e8dfeb
@ -1032,8 +1032,8 @@ static void ctdb_setup_event_callback(struct ctdb_context *ctdb, int status,
|
||||
void *private_data)
|
||||
{
|
||||
if (status != 0) {
|
||||
ctdb_fatal(ctdb, "Failed to run setup event\n");
|
||||
return;
|
||||
DEBUG(DEBUG_ALERT,("Failed to run setup event - exiting\n"));
|
||||
exit(1);
|
||||
}
|
||||
ctdb_run_notification_script(ctdb, "setup");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user