mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-33393 audit plugin do not report user did the action..
The '<replication_slave>' user is assigned to the slave replication thread so this name appears in the auditing logs.
This commit is contained in:
@@ -3511,6 +3511,7 @@ static int init_slave_thread(THD* thd, Master_info *mi,
|
||||
}
|
||||
|
||||
thd->security_ctx->skip_grants();
|
||||
thd->security_ctx->user=(char*) slave_user;
|
||||
thd->slave_thread= 1;
|
||||
thd->connection_name= mi->connection_name;
|
||||
thd->variables.sql_log_slow= !MY_TEST(thd->variables.log_slow_disabled_statements & LOG_SLOW_DISABLE_SLAVE);
|
||||
|
Reference in New Issue
Block a user