mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 21:55:33 +02:00
Bug#16865959 - PLEASE BACKPORT BUG 14749800.
Since log_throttle is not available in 5.5. Logging of error message for failure of thread to create new connection in "create_thread_to_handle_connection" is not backported. Since, function "my_plugin_log_message" is not available in 5.5 version and since there is incompatibility between sql_print_XXX function compiled with g++ and alog files with gcc to use sql_print_error, changes related to audit log plugin is not backported.
This commit is contained in:
parent
596e990263
commit
0ae219cd75
10 changed files with 123 additions and 77 deletions
|
|
@ -746,6 +746,7 @@ static bool event_scheduler_check(sys_var *self, THD *thd, set_var *var)
|
|||
}
|
||||
static bool event_scheduler_update(sys_var *self, THD *thd, enum_var_type type)
|
||||
{
|
||||
int err_no= 0;
|
||||
uint opt_event_scheduler_value= Events::opt_event_scheduler;
|
||||
mysql_mutex_unlock(&LOCK_global_system_variables);
|
||||
/*
|
||||
|
|
@ -765,11 +766,14 @@ static bool event_scheduler_update(sys_var *self, THD *thd, enum_var_type type)
|
|||
for deadlocks. See bug#51160.
|
||||
*/
|
||||
bool ret= opt_event_scheduler_value == Events::EVENTS_ON
|
||||
? Events::start()
|
||||
? Events::start(&err_no)
|
||||
: Events::stop();
|
||||
mysql_mutex_lock(&LOCK_global_system_variables);
|
||||
if (ret)
|
||||
my_error(ER_EVENT_SET_VAR_ERROR, MYF(0), 0);
|
||||
{
|
||||
Events::opt_event_scheduler= Events::EVENTS_OFF;
|
||||
my_error(ER_EVENT_SET_VAR_ERROR, MYF(0), err_no);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue