diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2013-09-09 16:56:35 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2013-09-09 16:56:35 +0500 |
commit | 92265da9d77bc750eb234cfac9d6239675078983 (patch) | |
tree | f6ca280d04ecfdbeaf2a773f654d002231f2002f /sql/sql_plugin_services.h | |
parent | 1e24cdc85be16d08bb079979ab5131e311542b80 (diff) | |
download | mariadb-git-92265da9d77bc750eb234cfac9d6239675078983.tar.gz |
MDEV-4472 Audit-plugin. Server-related part of the task.
file_logger became the service.
Data like query_id now are sent to the audit plugin.
Fix for MDEV-4770 ported from 10.0.
Fix added for the read_maria_plugin_info().
Log rotation can be disabled with 'set rotations=0'.
Diffstat (limited to 'sql/sql_plugin_services.h')
-rw-r--r-- | sql/sql_plugin_services.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sql/sql_plugin_services.h b/sql/sql_plugin_services.h index e3ef338eaad..ede8d9a675e 100644 --- a/sql/sql_plugin_services.h +++ b/sql/sql_plugin_services.h @@ -58,6 +58,16 @@ static struct kill_statement_service_st thd_kill_statement_handler= { thd_kill_level }; +static struct logger_service_st logger_service_handler= { + logger_init_mutexes, + logger_open, + logger_close, + logger_vprintf, + logger_printf, + logger_write, + logger_rotate +}; + static struct st_service_ref list_of_services[]= { { "my_snprintf_service", VERSION_my_snprintf, &my_snprintf_handler }, @@ -66,6 +76,7 @@ static struct st_service_ref list_of_services[]= { "my_thread_scheduler_service", VERSION_my_thread_scheduler, &my_thread_scheduler_handler }, { "progress_report_service", VERSION_progress_report, &progress_report_handler }, { "debug_sync_service", VERSION_debug_sync, 0 }, // updated in plugin_init() - { "thd_kill_statement_service", VERSION_kill_statement, &thd_kill_statement_handler } + { "thd_kill_statement_service", VERSION_kill_statement, &thd_kill_statement_handler }, + { "logger_service", VERSION_logger, &logger_service_handler }, }; |