in plugin/server_audit/server_audit.cc [2525:2550]
void __attribute__ ((constructor)) audit_plugin_so_init(void)
{
serv_ver= server_version;
#endif /*_WIN32*/
if (!serv_ver)
goto exit;
debug_server_started= strstr(serv_ver, "debug") != 0;
_mysql_plugin_declarations_[0].info= &mysql_descriptor;
use_event_data_for_disconnect= 1;
MYSQL_SYSVAR_NAME(loc_info).flags= PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL |
PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC;
memset(locinfo_ini_value, 'O', sizeof(locinfo_ini_value)-1);
locinfo_ini_value[sizeof(locinfo_ini_value)-1]= 0;
exit:
#ifdef _WIN32
return 1;
#else
return;
#endif
}