mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03: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:
@@ -25,7 +25,7 @@
|
||||
|
||||
#define MYSQL_AUDIT_CLASS_MASK_SIZE 1
|
||||
|
||||
#define MYSQL_AUDIT_INTERFACE_VERSION 0x0301
|
||||
#define MYSQL_AUDIT_INTERFACE_VERSION 0x0302
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
@@ -59,6 +59,10 @@ struct mysql_event_general
|
||||
struct charset_info_st *general_charset;
|
||||
unsigned long long general_time;
|
||||
unsigned long long general_rows;
|
||||
/* Added in version 0x302 */
|
||||
unsigned long long query_id;
|
||||
const char *database;
|
||||
unsigned int database_length;
|
||||
};
|
||||
|
||||
|
||||
@@ -140,6 +144,8 @@ struct mysql_event_table
|
||||
unsigned int new_database_length;
|
||||
const char *new_table;
|
||||
unsigned int new_table_length;
|
||||
/* Added in version 0x302 */
|
||||
unsigned long long query_id;
|
||||
};
|
||||
|
||||
/*************************************************************************
|
||||
|
Reference in New Issue
Block a user