mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
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'.
This commit is contained in:
parent
1e24cdc85b
commit
92265da9d7
21 changed files with 168 additions and 31 deletions
|
|
@ -16,7 +16,7 @@
|
|||
#include <mysql/plugin_audit.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "service_logger.h"
|
||||
#include <mysql/service_logger.h>
|
||||
|
||||
/*
|
||||
Disable __attribute__() on non-gcc compilers.
|
||||
|
|
@ -106,7 +106,7 @@ static void log_sql_errors(MYSQL_THD thd __attribute__((unused)),
|
|||
|
||||
static int sql_error_log_init(void *p __attribute__((unused)))
|
||||
{
|
||||
init_logger_mutexes();
|
||||
logger_init_mutexes();
|
||||
|
||||
logfile= logger_open(filename, size_limit, rotations);
|
||||
if (logfile == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue