mariadb/plugin/server_audit
Tony Chen 4e674a20c4 Simplify event filtering logic in server_audit plugin
Replace if-else chain with a single bitwise AND check when filtering query
events by type (DDL, DML, DCL, etc.).

The removes the need for the goto statements.

Additionally, we remove the orig_query variable as it served no purpose.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license
2026-01-14 16:39:23 +01:00
..
CMakeLists.txt Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
plugin_audit_v4.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
server_audit.c Simplify event filtering logic in server_audit plugin 2026-01-14 16:39:23 +01:00
test_audit_v4.c MDEV-18350 Using audit plugin with MySQL, mysqld crashes when running COM_INIT_DB against invalid database. 2019-07-26 08:44:43 +04:00