mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-11510 Audit plugin sometimes causes server to crash when using with MySQL.
MySQL has a bug failing to handle MYSQL_THDVAR_STR(... PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT | PLUGIN_VAR_MEMALLOC) so fall back to just PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC whem MySQL started.
This commit is contained in:
parent
14e1f32894
commit
211cf9321a
1 changed files with 1 additions and 0 deletions
|
@ -2845,6 +2845,7 @@ void __attribute__ ((constructor)) audit_plugin_so_init(void)
|
|||
_mysql_plugin_declarations_[0].info= mysql_v4_descriptor;
|
||||
use_event_data_for_disconnect= 1;
|
||||
}
|
||||
MYSQL_SYSVAR_NAME(loc_info).flags= PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC;
|
||||
}
|
||||
|
||||
memset(locinfo_ini_value, 'O', sizeof(locinfo_ini_value)-1);
|
||||
|
|
Loading…
Reference in a new issue