mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
# $table_item = <schema>.<tablename> must be set before sourcing this script.
|
||||
#
|
||||
|
||||
--disable_ps2_protocol
|
||||
insert into marker set a = 1;
|
||||
eval insert into $table_item set a = 'foo', b = 1;
|
||||
insert into marker set a = 1;
|
||||
@ -33,4 +34,4 @@ insert into marker set a = 1;
|
||||
eval truncate table $table_item;
|
||||
--enable_abort_on_error
|
||||
insert into marker set a = 1;
|
||||
|
||||
--enable_ps2_protocol
|
||||
|
@ -54,6 +54,7 @@ select count(*) from test.index_tab;
|
||||
|
||||
# Testing Code
|
||||
|
||||
--disable_ps2_protocol
|
||||
# For getting avg(a) inspection of
|
||||
# - all rows (test.no_index_tab)
|
||||
# - all unique index values (test.index_tab, assuming the optimizer decides to
|
||||
@ -102,6 +103,7 @@ update performance_schema.setup_consumers set enabled='YES';
|
||||
delete from test.index_tab where a = 51;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
eval $table_io_select 'index_tab';
|
||||
--enable_ps2_protocol
|
||||
|
||||
# In case of failures, this will tell if table io are lost.
|
||||
show status like 'performance_schema_%';
|
||||
|
@ -27,6 +27,7 @@ let $schema_to_dump= 'test','test1';
|
||||
# Start event recording
|
||||
update performance_schema.setup_consumers set enabled = 'YES';
|
||||
|
||||
--disable_ps2_protocol
|
||||
# INSERT ... SELECT ...
|
||||
insert into test1.t2 select * from test.t1;
|
||||
insert into marker set a = 1;
|
||||
@ -42,6 +43,7 @@ insert into marker set a = 1;
|
||||
# DELETE
|
||||
delete from test.t1, test1.t2 using test.t1 inner join test1.t2
|
||||
where test.t1.col1 = test1.t2.col1;
|
||||
--enable_ps2_protocol
|
||||
|
||||
# Stop event recording + pull results
|
||||
--source ../include/table_io_result_helper.inc
|
||||
|
@ -22,6 +22,7 @@ flush query cache;
|
||||
reset query cache;
|
||||
flush status;
|
||||
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
|
||||
show status like "Qcache_queries_in_cache";
|
||||
@ -47,6 +48,7 @@ select spins from performance_schema.events_waits_current order by event_name li
|
||||
|
||||
--replace_result CYCLE {CYCLE_OR_NANOSECOND} NANOSECOND {CYCLE_OR_NANOSECOND}
|
||||
select * from performance_schema.setup_timers where name='wait';
|
||||
--enable_ps2_protocol
|
||||
|
||||
show status like "Qcache_queries_in_cache";
|
||||
show status like "Qcache_inserts";
|
||||
|
@ -37,6 +37,7 @@ update performance_schema.setup_consumers set enabled = 'YES';
|
||||
|
||||
# Code to test
|
||||
|
||||
--disable_ps2_protocol
|
||||
insert into marker set a = 1;
|
||||
insert into t1 set a = 1, v = 10;
|
||||
insert into marker set a = 1;
|
||||
@ -63,6 +64,7 @@ insert into marker set a = 1;
|
||||
select * from t1;
|
||||
insert into marker set a = 1;
|
||||
select * from t2;
|
||||
--enable_ps2_protocol
|
||||
|
||||
# Stop recording events + pull results
|
||||
--source ../include/table_io_result_helper.inc
|
||||
|
Reference in New Issue
Block a user