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:
@ -4,8 +4,10 @@ set @save_query_cache_size=@@global.query_cache_size;
|
||||
|
||||
# test that hits are correctly incremented
|
||||
reset query cache;
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
select * from t1;
|
||||
--enable_ps2_protocol
|
||||
select hits, statement_text from information_schema.query_cache_info;
|
||||
|
||||
drop table t1;
|
||||
|
@ -9,7 +9,9 @@ set global query_cache_size=1355776;
|
||||
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1),(2),(3);
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
--enable_ps2_protocol
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
|
||||
select @@time_zone into @time_zone;
|
||||
@ -25,7 +27,9 @@ select @@group_concat_max_len into @group_concat_max_len;
|
||||
select Name into @new_time_zone from mysql.time_zone_name limit 1;
|
||||
set time_zone=@new_time_zone,default_week_format=4,character_set_client='binary',character_set_results='utf32',collation_connection='utf32_bin',sql_mode='STRICT_ALL_TABLES',div_precision_increment=7,lc_time_names='ar_SD',autocommit=0, group_concat_max_len=513, max_sort_length=1011;
|
||||
--disable_result_log
|
||||
--disable_ps2_protocol
|
||||
select * from t1;
|
||||
--enable_ps2_protocol
|
||||
--enable_result_log
|
||||
set time_zone= @time_zone, default_week_format= @default_week_format, character_set_client= @character_set_client,character_set_results= @character_set_results, sql_mode= @sql_mode, div_precision_increment= @div_precision_increment, lc_time_names= @lc_time_names, autocommit= @autocommit, group_concat_max_len= @group_concat_max_len, max_sort_length= @max_sort_length;
|
||||
|
||||
|
@ -5,6 +5,7 @@ if (!$SERVER_AUDIT_SO) {
|
||||
skip No SERVER_AUDIT plugin;
|
||||
}
|
||||
|
||||
--disable_ps2_protocol
|
||||
# An unfortunate wait for check-testcase.test to complete disconnect.
|
||||
let count_sessions= 1;
|
||||
source include/wait_until_count_sessions.inc;
|
||||
@ -234,6 +235,7 @@ uninstall plugin server_audit;
|
||||
--replace_regex /[0-9]* [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\,[^,]*\,/TIME,HOSTNAME,/ /\,[1-9][0-9]*\,/,1,/ /\,[1-9][0-9]*/,ID/
|
||||
cat_file $MYSQLD_DATADIR/server_audit.log;
|
||||
remove_file $MYSQLD_DATADIR/server_audit.log;
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-27631 Assertion `global_status_var.global_memory_used == 0' failed in mysqld_exit
|
||||
|
@ -12,7 +12,9 @@ show status like '%libraries%';
|
||||
#show status like '%libraries%';
|
||||
--replace_result .dll .so
|
||||
--replace_column 5 MYSQL_VERSION_ID
|
||||
--disable_ps2_protocol
|
||||
eval select * from information_schema.all_plugins where plugin_library='$HA_EXAMPLE_SO';
|
||||
--enable_ps2_protocol
|
||||
show status like '%libraries%';
|
||||
--sorted_result
|
||||
--replace_result .dll .so
|
||||
|
@ -7,6 +7,7 @@ if (!$SERVER_AUDIT_SO) {
|
||||
|
||||
install plugin server_audit soname 'server_audit';
|
||||
|
||||
--disable_ps2_protocol
|
||||
show variables like 'server_audit%';
|
||||
set global server_audit_file_path=null;
|
||||
set global server_audit_incl_users=null;
|
||||
@ -140,6 +141,7 @@ set global server_audit_file_path='nonexisting_dir/';
|
||||
show status like 'server_audit_current_log';
|
||||
show variables like 'server_audit%';
|
||||
uninstall plugin server_audit;
|
||||
--enable_ps2_protocol
|
||||
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
# replace the timestamp and the hostname with constant values
|
||||
|
Reference in New Issue
Block a user