mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-18661 loading the audit plugin causes performance regression.
Plugin fixed to not lock the LOCK_operations when not active. Server fixed to lock the LOCK_plugin less - do it once per thread and then only if a plugin was installed/uninstalled.
This commit is contained in:
@ -266,7 +266,8 @@ int threadpool_process_request(THD *thd)
|
||||
{
|
||||
Vio *vio;
|
||||
thd->net.reading_or_writing= 0;
|
||||
mysql_audit_release(thd);
|
||||
if (mysql_audit_release_required(thd))
|
||||
mysql_audit_release(thd);
|
||||
|
||||
if ((retval= do_command(thd)) != 0)
|
||||
goto end;
|
||||
|
Reference in New Issue
Block a user