1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

perfschema compilation, test and misc fixes

This commit is contained in:
Sergei Golubchik
2020-02-15 18:25:57 +01:00
parent 81cffda2e6
commit 7af733a5a2
403 changed files with 20147 additions and 63173 deletions

View File

@ -25,22 +25,27 @@ global_instrumentation YES
thread_instrumentation YES
statements_digest YES
# Switch to (con1, localhost, user1, , )
connect con1, localhost, user1, , ;
update performance_schema.threads
set INSTRUMENTED='YES', HISTORY='YES'
where PROCESSLIST_ID = connection_id();
# Switch to (con2, localhost, user2, , )
connect con2, localhost, user2, , ;
update performance_schema.threads
set INSTRUMENTED='YES', HISTORY='NO'
where PROCESSLIST_ID = connection_id();
# Switch to (con3, localhost, user3, , )
connect con3, localhost, user3, , ;
update performance_schema.threads
set INSTRUMENTED='NO', HISTORY='YES'
where PROCESSLIST_ID = connection_id();
# Switch to (con4, localhost, user4, , )
connect con4, localhost, user4, , ;
update performance_schema.threads
set INSTRUMENTED='NO', HISTORY='NO'
where PROCESSLIST_ID = connection_id();
# Switch to connection default
connection default;
truncate table performance_schema.events_transactions_current;
truncate table performance_schema.events_transactions_history;
truncate table performance_schema.events_transactions_history_long;
@ -54,6 +59,7 @@ truncate table performance_schema.events_waits_current;
truncate table performance_schema.events_waits_history;
truncate table performance_schema.events_waits_history_long;
# Switch to connection con1
connection con1;
XA START 'XA_CON1', 'XA_BQUAL', 12;
select "Hi from con1";
Hi from con1
@ -62,6 +68,7 @@ XA END 'XA_CON1', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON1', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON1', 'XA_BQUAL', 12;
# Switch to connection con2
connection con2;
XA START 'XA_CON2', 'XA_BQUAL', 12;
select "Hi from con2";
Hi from con2
@ -70,6 +77,7 @@ XA END 'XA_CON2', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON2', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON2', 'XA_BQUAL', 12;
# Switch to connection con3
connection con3;
XA START 'XA_CON3', 'XA_BQUAL', 12;
select "Hi from con3";
Hi from con3
@ -78,6 +86,7 @@ XA END 'XA_CON3', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON3', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON3', 'XA_BQUAL', 12;
# Switch to connection con4
connection con4;
XA START 'XA_CON4', 'XA_BQUAL', 12;
select "Hi from con4";
Hi from con4
@ -85,6 +94,7 @@ Hi from con4
XA END 'XA_CON4', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON4', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON4', 'XA_BQUAL', 12;
connection default;
"=========================== Transactions user 1"
XID_FORMAT_ID XID_GTRID XID_BQUAL
12 XA_CON1 XA_BQUAL
@ -152,48 +162,59 @@ count(*)
"=========================== Stages user 1"
EVENT_NAME
EVENT_NAME
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/starting
stage/sql/query end
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
EVENT_NAME
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/checking permissions
stage/sql/Opening tables
stage/sql/After opening tables
stage/sql/init
stage/sql/optimizing
stage/sql/executing
stage/sql/end
stage/sql/query end
stage/sql/Optimizing
stage/sql/Executing
stage/sql/End of update loop
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
"=========================== Stages user 2"
EVENT_NAME
count(*)
@ -243,6 +264,7 @@ count(*)
count(*)
0
# Switch to connection default, disable consumers
connection default;
update performance_schema.setup_consumers
set enabled='NO' where name like "%history%";
select * from performance_schema.setup_consumers;
@ -275,6 +297,7 @@ truncate table performance_schema.events_waits_current;
truncate table performance_schema.events_waits_history;
truncate table performance_schema.events_waits_history_long;
# Switch to connection con1
connection con1;
XA START 'XA_CON1', 'XA_BQUAL', 12;
select "Hi from con1";
Hi from con1
@ -283,6 +306,7 @@ XA END 'XA_CON1', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON1', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON1', 'XA_BQUAL', 12;
# Switch to connection con2
connection con2;
XA START 'XA_CON2', 'XA_BQUAL', 12;
select "Hi from con2";
Hi from con2
@ -291,6 +315,7 @@ XA END 'XA_CON2', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON2', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON2', 'XA_BQUAL', 12;
# Switch to connection con3
connection con3;
XA START 'XA_CON3', 'XA_BQUAL', 12;
select "Hi from con3";
Hi from con3
@ -299,6 +324,7 @@ XA END 'XA_CON3', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON3', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON3', 'XA_BQUAL', 12;
# Switch to connection con4
connection con4;
XA START 'XA_CON4', 'XA_BQUAL', 12;
select "Hi from con4";
Hi from con4
@ -306,6 +332,7 @@ Hi from con4
XA END 'XA_CON4', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON4', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON4', 'XA_BQUAL', 12;
connection default;
"=========================== Transactions user 1"
XID_FORMAT_ID XID_GTRID XID_BQUAL
12 XA_CON1 XA_BQUAL
@ -417,6 +444,7 @@ count(*)
count(*)
0
# Switch to connection default, enable consumers
connection default;
update performance_schema.setup_consumers
set enabled='YES' where name like "%history%";
select * from performance_schema.setup_consumers;
@ -449,6 +477,7 @@ truncate table performance_schema.events_waits_current;
truncate table performance_schema.events_waits_history;
truncate table performance_schema.events_waits_history_long;
# Switch to connection con1
connection con1;
XA START 'XA_CON1', 'XA_BQUAL', 12;
select "Hi from con1";
Hi from con1
@ -457,6 +486,7 @@ XA END 'XA_CON1', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON1', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON1', 'XA_BQUAL', 12;
# Switch to connection con2
connection con2;
XA START 'XA_CON2', 'XA_BQUAL', 12;
select "Hi from con2";
Hi from con2
@ -465,6 +495,7 @@ XA END 'XA_CON2', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON2', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON2', 'XA_BQUAL', 12;
# Switch to connection con3
connection con3;
XA START 'XA_CON3', 'XA_BQUAL', 12;
select "Hi from con3";
Hi from con3
@ -473,6 +504,7 @@ XA END 'XA_CON3', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON3', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON3', 'XA_BQUAL', 12;
# Switch to connection con4
connection con4;
XA START 'XA_CON4', 'XA_BQUAL', 12;
select "Hi from con4";
Hi from con4
@ -480,6 +512,7 @@ Hi from con4
XA END 'XA_CON4', 'XA_BQUAL', 12;
XA PREPARE 'XA_CON4', 'XA_BQUAL', 12;
XA COMMIT 'XA_CON4', 'XA_BQUAL', 12;
connection default;
"=========================== Transactions user 1"
XID_FORMAT_ID XID_GTRID XID_BQUAL
12 XA_CON1 XA_BQUAL
@ -547,48 +580,59 @@ count(*)
"=========================== Stages user 1"
EVENT_NAME
EVENT_NAME
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/starting
stage/sql/query end
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
EVENT_NAME
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/checking permissions
stage/sql/Opening tables
stage/sql/After opening tables
stage/sql/init
stage/sql/optimizing
stage/sql/executing
stage/sql/end
stage/sql/query end
stage/sql/Optimizing
stage/sql/Executing
stage/sql/End of update loop
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
stage/sql/starting
stage/sql/query end
stage/sql/Query end
stage/sql/Commit
stage/sql/closing tables
stage/sql/freeing items
stage/sql/cleaning up
stage/sql/Starting cleanup
stage/sql/Freeing items
stage/sql/Reset for next command
"=========================== Stages user 2"
EVENT_NAME
count(*)
@ -638,6 +682,7 @@ count(*)
count(*)
0
# Switch to connection default
connection default;
revoke all privileges, grant option from user1@localhost;
revoke all privileges, grant option from user2@localhost;
revoke all privileges, grant option from user3@localhost;