summaryrefslogtreecommitdiff
path: root/sql/sql_audit.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2019-06-15 01:02:55 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2019-06-15 01:02:55 +0400
commit65e0c9b91b46e2dfb4388c8c5c1bc76dd9f8fbd8 (patch)
tree0d2d67b2cc8b1baaf89111d6d3d80a52a744cb59 /sql/sql_audit.h
parent5b65d61d9384a45ea1b8df79694493fbb1a14e4a (diff)
downloadmariadb-git-65e0c9b91b46e2dfb4388c8c5c1bc76dd9f8fbd8.tar.gz
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.
Diffstat (limited to 'sql/sql_audit.h')
-rw-r--r--sql/sql_audit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_audit.h b/sql/sql_audit.h
index 550b2a50290..9a746757201 100644
--- a/sql/sql_audit.h
+++ b/sql/sql_audit.h
@@ -60,6 +60,7 @@ static inline void mysql_audit_notify(THD *thd, uint event_class,
#define mysql_audit_connection_enabled() 0
#define mysql_audit_table_enabled() 0
#endif
+extern my_bool mysql_audit_release_required(THD *thd);
extern void mysql_audit_release(THD *thd);
#define MAX_USER_HOST_SIZE 512