1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

MDEV-34680 post-fixes

* clarify the help text for --server-audit-file-rotate-size
* initialize cn->sync_statement, otherwise new connection randomly syncs
* and DON'T SPAM syslog
This commit is contained in:
Sergei Golubchik
2025-07-31 16:27:44 +02:00
parent 7251cbca51
commit ef3c843c17
3 changed files with 2 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ set global server_audit_file_buffer_size=0;
Line count in file: 1206
set global server_audit_sync_log_file=on;
Line count in file: 1207
SET GLOBAL server_audit_output_type=0;
SET GLOBAL server_audit_file_buffer_size=0;
set global server_audit_logging=off;
uninstall plugin server_audit;

View File

@@ -1,4 +1,3 @@
--source include/have_plugin_auth.inc
--source include/not_embedded.inc
if (!$SERVER_AUDIT_SO) {
@@ -98,7 +97,6 @@ set global server_audit_sync_log_file=on;
let SEARCH_COUNT=1207;
--source include/wait_for_line_count_in_file.inc
SET GLOBAL server_audit_output_type=0;
SET GLOBAL server_audit_file_buffer_size=0;
set global server_audit_logging=off;

View File

@@ -278,7 +278,7 @@ static MYSQL_SYSVAR_ENUM(output_type, output_type, PLUGIN_VAR_RQCMDARG,
static MYSQL_SYSVAR_STR(file_path, file_path, PLUGIN_VAR_RQCMDARG,
"Path to the log file", NULL, update_file_path, default_file_name);
static MYSQL_SYSVAR_ULONGLONG(file_rotate_size, file_rotate_size,
PLUGIN_VAR_RQCMDARG, "Maximum size of the log to start the rotation",
PLUGIN_VAR_RQCMDARG, "Rotate the log when it grows larger than that",
NULL, update_file_rotate_size,
1000000, 100, ((long long) 0x7FFFFFFFFFFFFFFFLL), 1);
static MYSQL_SYSVAR_UINT(file_rotations, rotations,
@@ -1075,6 +1075,7 @@ static void setup_connection_connect(MYSQL_THD thd,struct connection_info *cn,
cn->query_id= 0;
cn->query_length= 0;
cn->log_always= 0;
cn->sync_statement= 0;
cn->thread_id= event->thread_id;
get_str_n(cn->db, &cn->db_length, sizeof(cn->db),
event->database.str, event->database.length);