Skip to content

Commit 211cf93

Browse files
author
Alexey Botchkov
committed
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.
1 parent 14e1f32 commit 211cf93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/server_audit/server_audit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2845,6 +2845,7 @@ void __attribute__ ((constructor)) audit_plugin_so_init(void)
28452845
_mysql_plugin_declarations_[0].info= mysql_v4_descriptor;
28462846
use_event_data_for_disconnect= 1;
28472847
}
2848+
MYSQL_SYSVAR_NAME(loc_info).flags= PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC;
28482849
}
28492850

28502851
memset(locinfo_ini_value, 'O', sizeof(locinfo_ini_value)-1);

0 commit comments

Comments
 (0)