mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MENT-237 Audit to show INSERT DELAYED for the executing user.
Add notifications about the user and connection that actually did the DELAYED insert.
This commit is contained in:
@ -136,7 +136,27 @@ select * from t1;
|
||||
select 2;
|
||||
drop table t1;
|
||||
|
||||
set global server_audit_events='table';
|
||||
set global server_audit_incl_users='user1';
|
||||
|
||||
create user user1@localhost;
|
||||
grant all on sa_db.* to user1@localhost;
|
||||
|
||||
connect (cn1,localhost,user1,,sa_db);
|
||||
connection cn1;
|
||||
|
||||
create table t1(id int) engine=myisam;
|
||||
insert delayed into t1 values (1), (2);
|
||||
connection default;
|
||||
--echo # Waiting until ALTER TABLE is blocked.
|
||||
let $wait_condition= SELECT COUNT(*) = 2 FROM t1;
|
||||
--source include/wait_condition.inc
|
||||
drop table t1;
|
||||
disconnect cn1;
|
||||
drop user user1@localhost;
|
||||
|
||||
set global server_audit_logging= off;
|
||||
set global server_audit_incl_users='';
|
||||
set global server_audit_logging= on;
|
||||
|
||||
set global server_audit_events='';
|
||||
|
Reference in New Issue
Block a user