mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,29 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
@@ -0,0 +1,7 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,9 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
let $DIRECT_SQL_COMMAND=
|
||||
SELECT spider_direct_sql('SELECT 22', 'tmp_a', 'srv "s_2_1", database "test"');
|
@@ -0,0 +1,19 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $MASTER_1_COMMENT_2_2= $MASTER_1_COMMENT_2_2_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--let $CHILD2_2_DROP_TABLES= $CHILD2_2_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_2_CREATE_TABLES= $CHILD2_2_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_2_SELECT_TABLES= $CHILD2_2_SELECT_TABLES_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,51 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $MASTER_1_COMMENT_2_2_BACKUP= $MASTER_1_COMMENT_2_2
|
||||
let $MASTER_1_COMMENT_2_2=
|
||||
COMMENT='table "tbl_b", srv "s_2_2"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--let $CHILD2_2_DROP_TABLES_BACKUP= $CHILD2_2_DROP_TABLES
|
||||
let $CHILD2_2_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--let $CHILD2_2_CREATE_TABLES_BACKUP= $CHILD2_2_CREATE_TABLES
|
||||
let $CHILD2_2_CREATE_TABLES=
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_2_ENGINE $CHILD2_2_CHARSET;
|
||||
--let $CHILD2_2_SELECT_TABLES_BACKUP= $CHILD2_2_SELECT_TABLES
|
||||
let $CHILD2_2_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
let $CHILD2_2_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 0;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_6=
|
||||
set session spider_quick_page_byte= 6;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_0=
|
||||
set session spider_quick_page_byte= 0;
|
@@ -0,0 +1,19 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $MASTER_1_COMMENT_2_2= $MASTER_1_COMMENT_2_2_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--let $CHILD2_2_DROP_TABLES= $CHILD2_2_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_2_CREATE_TABLES= $CHILD2_2_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_2_SELECT_TABLES= $CHILD2_2_SELECT_TABLES_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,51 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $MASTER_1_COMMENT_2_2_BACKUP= $MASTER_1_COMMENT_2_2
|
||||
let $MASTER_1_COMMENT_2_2=
|
||||
COMMENT='table "tbl_b", srv "s_2_2"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--let $CHILD2_2_DROP_TABLES_BACKUP= $CHILD2_2_DROP_TABLES
|
||||
let $CHILD2_2_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--let $CHILD2_2_CREATE_TABLES_BACKUP= $CHILD2_2_CREATE_TABLES
|
||||
let $CHILD2_2_CREATE_TABLES=
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_2_ENGINE $CHILD2_2_CHARSET;
|
||||
--let $CHILD2_2_SELECT_TABLES_BACKUP= $CHILD2_2_SELECT_TABLES
|
||||
let $CHILD2_2_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
let $CHILD2_2_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 1;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_6=
|
||||
set session spider_quick_page_byte= 6;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_0=
|
||||
set session spider_quick_page_byte= 0;
|
@@ -0,0 +1,19 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $MASTER_1_COMMENT_2_2= $MASTER_1_COMMENT_2_2_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--let $CHILD2_2_DROP_TABLES= $CHILD2_2_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_2_CREATE_TABLES= $CHILD2_2_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_2_SELECT_TABLES= $CHILD2_2_SELECT_TABLES_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,51 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $MASTER_1_COMMENT_2_2_BACKUP= $MASTER_1_COMMENT_2_2
|
||||
let $MASTER_1_COMMENT_2_2=
|
||||
COMMENT='table "tbl_b", srv "s_2_2"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--let $CHILD2_2_DROP_TABLES_BACKUP= $CHILD2_2_DROP_TABLES
|
||||
let $CHILD2_2_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--let $CHILD2_2_CREATE_TABLES_BACKUP= $CHILD2_2_CREATE_TABLES
|
||||
let $CHILD2_2_CREATE_TABLES=
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_2_ENGINE $CHILD2_2_CHARSET;
|
||||
--let $CHILD2_2_SELECT_TABLES_BACKUP= $CHILD2_2_SELECT_TABLES
|
||||
let $CHILD2_2_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
let $CHILD2_2_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 2;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_6=
|
||||
set session spider_quick_page_byte= 6;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_0=
|
||||
set session spider_quick_page_byte= 0;
|
@@ -0,0 +1,19 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $MASTER_1_COMMENT_2_2= $MASTER_1_COMMENT_2_2_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--let $CHILD2_2_DROP_TABLES= $CHILD2_2_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_2_CREATE_TABLES= $CHILD2_2_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_2_SELECT_TABLES= $CHILD2_2_SELECT_TABLES_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,51 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $MASTER_1_COMMENT_2_2_BACKUP= $MASTER_1_COMMENT_2_2
|
||||
let $MASTER_1_COMMENT_2_2=
|
||||
COMMENT='table "tbl_b", srv "s_2_2"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--let $CHILD2_2_DROP_TABLES_BACKUP= $CHILD2_2_DROP_TABLES
|
||||
let $CHILD2_2_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--let $CHILD2_2_CREATE_TABLES_BACKUP= $CHILD2_2_CREATE_TABLES
|
||||
let $CHILD2_2_CREATE_TABLES=
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_2_ENGINE $CHILD2_2_CHARSET;
|
||||
--let $CHILD2_2_SELECT_TABLES_BACKUP= $CHILD2_2_SELECT_TABLES
|
||||
let $CHILD2_2_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
let $CHILD2_2_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_6=
|
||||
set session spider_quick_page_byte= 6;
|
||||
let $MASTER_1_SET_QUICK_PAGE_BYTE_0=
|
||||
set session spider_quick_page_byte= 0;
|
@@ -0,0 +1,15 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--connection slave1_1
|
||||
set global spider_slave_trx_isolation= @old_spider_slave_trx_isolation;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../include/deinit_spider.inc
|
||||
--source ../t/slave_test_deinit.inc
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,35 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--source ../t/slave_test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%set %';
|
||||
--connection slave1_1
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../include/init_spider.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation;
|
||||
set global spider_slave_trx_isolation= 1;
|
@@ -0,0 +1,11 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_deinit.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
@@ -0,0 +1,24 @@
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
--source ../t/test_init.inc
|
||||
--enable_result_log
|
||||
--enable_query_log
|
||||
--enable_warnings
|
||||
--let $MASTER_1_COMMENT_2_1_BACKUP= $MASTER_1_COMMENT_2_1
|
||||
let $MASTER_1_COMMENT_2_1=
|
||||
COMMENT='table "tbl_a", srv "s_2_1", wrapper "mariadb"';
|
||||
--let $CHILD2_1_DROP_TABLES_BACKUP= $CHILD2_1_DROP_TABLES
|
||||
let $CHILD2_1_DROP_TABLES=
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--let $CHILD2_1_CREATE_TABLES_BACKUP= $CHILD2_1_CREATE_TABLES
|
||||
let $CHILD2_1_CREATE_TABLES=
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $CHILD2_1_ENGINE $CHILD2_1_CHARSET;
|
||||
--let $CHILD2_1_SELECT_TABLES_BACKUP= $CHILD2_1_SELECT_TABLES
|
||||
let $CHILD2_1_SELECT_TABLES=
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
2
storage/spider/mysql-test/spider/bugfix/my.cnf
Normal file
2
storage/spider/mysql-test/spider/bugfix/my.cnf
Normal file
@@ -0,0 +1,2 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include my_1_1.cnf
|
44
storage/spider/mysql-test/spider/bugfix/my_1_1.cnf
Normal file
44
storage/spider/mysql-test/spider/bugfix/my_1_1.cnf
Normal file
@@ -0,0 +1,44 @@
|
||||
[mysqld.1.1]
|
||||
log-bin= master-bin
|
||||
loose_handlersocket_port= 20000
|
||||
loose_handlersocket_port_wr= 20001
|
||||
loose_handlersocket_threads= 2
|
||||
loose_handlersocket_threads_wr= 1
|
||||
loose_handlersocket_support_merge_table= 0
|
||||
loose_handlersocket_direct_update_mode= 2
|
||||
loose_handlersocket_unlimited_boundary= 65536
|
||||
loose_handlersocket_bulk_insert= 0
|
||||
loose_handlersocket_bulk_insert_timeout= 0
|
||||
loose_handlersocket_general_log= 1
|
||||
loose_handlersocket_timeout= 30
|
||||
loose_handlersocket_close_table_interval=2
|
||||
open_files_limit= 4096
|
||||
loose_partition= 1
|
||||
|
||||
[ENV]
|
||||
USE_GEOMETRY_TEST= 1
|
||||
USE_FULLTEXT_TEST= 1
|
||||
USE_HA_TEST= 1
|
||||
USE_GENERAL_LOG= 1
|
||||
USE_REPLICATION= 1
|
||||
MASTER_1_MYPORT= @mysqld.1.1.port
|
||||
MASTER_1_HSRPORT= 20000
|
||||
MASTER_1_HSWPORT= 20001
|
||||
MASTER_1_MYSOCK= @mysqld.1.1.socket
|
||||
MASTER_1_ENGINE_TYPE= Spider
|
||||
#MASTER_1_ENGINE_TYPE= MyISAM
|
||||
MASTER_1_ENGINE= ENGINE=Spider
|
||||
MASTER_1_CHARSET= DEFAULT CHARSET=utf8
|
||||
MASTER_1_ENGINE2= ENGINE=MyISAM
|
||||
MASTER_1_CHARSET2= DEFAULT CHARSET=utf8
|
||||
MASTER_1_CHARSET3= DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
||||
|
||||
STR_SEMICOLON= ;
|
||||
|
||||
#The followings are set in include/init_xxx.inc files
|
||||
# MASTER_1_COMMENT_2_1
|
||||
# MASTER_1_COMMENT2_2_1
|
||||
# MASTER_1_COMMENT3_2_1
|
||||
# MASTER_1_COMMENT4_2_1
|
||||
# MASTER_1_COMMENT5_2_1
|
||||
# MASTER_1_COMMENT_P_2_1
|
56
storage/spider/mysql-test/spider/bugfix/my_2_1.cnf
Normal file
56
storage/spider/mysql-test/spider/bugfix/my_2_1.cnf
Normal file
@@ -0,0 +1,56 @@
|
||||
[mysqld.2.1]
|
||||
loose_handlersocket_port= 20002
|
||||
loose_handlersocket_port_wr= 20003
|
||||
loose_handlersocket_threads= 2
|
||||
loose_handlersocket_threads_wr= 1
|
||||
loose_handlersocket_support_merge_table= 0
|
||||
loose_handlersocket_direct_update_mode= 2
|
||||
loose_handlersocket_unlimited_boundary= 65536
|
||||
loose_handlersocket_bulk_insert= 0
|
||||
loose_handlersocket_bulk_insert_timeout= 0
|
||||
loose_handlersocket_general_log= 1
|
||||
loose_handlersocket_timeout= 30
|
||||
loose_handlersocket_close_table_interval=2
|
||||
open_files_limit= 4096
|
||||
|
||||
[ENV]
|
||||
USE_CHILD_GROUP2= 1
|
||||
OUTPUT_CHILD_GROUP2= 0
|
||||
CHILD2_1_MYPORT= @mysqld.2.1.port
|
||||
CHILD2_1_HSRPORT= 20002
|
||||
CHILD2_1_HSWPORT= 20003
|
||||
CHILD2_1_MYSOCK= @mysqld.2.1.socket
|
||||
CHILD2_1_ENGINE_TYPE= InnoDB
|
||||
CHILD2_1_ENGINE= ENGINE=InnoDB
|
||||
CHILD2_1_CHARSET= DEFAULT CHARSET=utf8
|
||||
CHILD2_1_CHARSET2= DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
||||
CHILD2_1_FT_MYPORT= @mysqld.2.1.port
|
||||
CHILD2_1_FT_MYSOCK= @mysqld.2.1.socket
|
||||
CHILD2_1_FT_ENGINE_TYPE= MyISAM
|
||||
CHILD2_1_FT_ENGINE= ENGINE=MyISAM
|
||||
CHILD2_1_FT_CHARSET= DEFAULT CHARSET=utf8
|
||||
CHILD2_1_GM_MYPORT= @mysqld.2.1.port
|
||||
CHILD2_1_GM_MYSOCK= @mysqld.2.1.socket
|
||||
CHILD2_1_GM_ENGINE_TYPE= MyISAM
|
||||
CHILD2_1_GM_ENGINE= ENGINE=MyISAM
|
||||
CHILD2_1_GM_CHARSET= DEFAULT CHARSET=utf8
|
||||
|
||||
#The followings are set in include/init_xxx.inc files
|
||||
# CHILD2_1_DROP_TABLES
|
||||
# CHILD2_1_CREATE_TABLES
|
||||
# CHILD2_1_SELECT_TABLES
|
||||
# CHILD2_1_DROP_TABLES2
|
||||
# CHILD2_1_CREATE_TABLES2
|
||||
# CHILD2_1_SELECT_TABLES2
|
||||
# CHILD2_1_DROP_TABLES3
|
||||
# CHILD2_1_CREATE_TABLES3
|
||||
# CHILD2_1_SELECT_TABLES3
|
||||
# CHILD2_1_DROP_TABLES4
|
||||
# CHILD2_1_CREATE_TABLES4
|
||||
# CHILD2_1_SELECT_TABLES4
|
||||
# CHILD2_1_DROP_TABLES5
|
||||
# CHILD2_1_CREATE_TABLES5
|
||||
# CHILD2_1_SELECT_TABLES5
|
||||
# CHILD2_1_DROP_TABLES6
|
||||
# CHILD2_1_CREATE_TABLES6
|
||||
# CHILD2_1_SELECT_TABLES6
|
38
storage/spider/mysql-test/spider/bugfix/my_2_2.cnf
Normal file
38
storage/spider/mysql-test/spider/bugfix/my_2_2.cnf
Normal file
@@ -0,0 +1,38 @@
|
||||
[mysqld.2.2]
|
||||
loose_handlersocket_port= 20004
|
||||
loose_handlersocket_port_wr= 20005
|
||||
loose_handlersocket_threads= 2
|
||||
loose_handlersocket_threads_wr= 1
|
||||
loose_handlersocket_support_merge_table= 0
|
||||
loose_handlersocket_direct_update_mode= 2
|
||||
loose_handlersocket_unlimited_boundary= 65536
|
||||
loose_handlersocket_bulk_insert= 0
|
||||
loose_handlersocket_bulk_insert_timeout= 0
|
||||
loose_handlersocket_general_log= 1
|
||||
loose_handlersocket_timeout= 30
|
||||
loose_handlersocket_close_table_interval=2
|
||||
open_files_limit= 4096
|
||||
|
||||
[ENV]
|
||||
CHILD2_2_MYPORT= @mysqld.2.2.port
|
||||
CHILD2_2_HSRPORT= 20004
|
||||
CHILD2_2_HSWPORT= 20005
|
||||
CHILD2_2_MYSOCK= @mysqld.2.2.socket
|
||||
CHILD2_2_ENGINE_TYPE= InnoDB
|
||||
CHILD2_2_ENGINE= ENGINE=InnoDB
|
||||
CHILD2_2_CHARSET= DEFAULT CHARSET=utf8
|
||||
CHILD2_2_FT_MYPORT= @mysqld.2.2.port
|
||||
CHILD2_2_FT_MYSOCK= @mysqld.2.2.socket
|
||||
CHILD2_2_FT_ENGINE_TYPE= MyISAM
|
||||
CHILD2_2_FT_ENGINE= ENGINE=MyISAM
|
||||
CHILD2_2_FT_CHARSET= DEFAULT CHARSET=utf8
|
||||
CHILD2_2_GM_MYPORT= @mysqld.2.2.port
|
||||
CHILD2_2_GM_MYSOCK= @mysqld.2.2.socket
|
||||
CHILD2_2_GM_ENGINE_TYPE= MyISAM
|
||||
CHILD2_2_GM_ENGINE= ENGINE=MyISAM
|
||||
CHILD2_2_GM_CHARSET= DEFAULT CHARSET=utf8
|
||||
|
||||
#The followings are set in include/init_xxx.inc files
|
||||
# CHILD2_2_DROP_TABLES
|
||||
# CHILD2_2_CREATE_TABLES
|
||||
# CHILD2_2_SELECT_TABLES
|
8
storage/spider/mysql-test/spider/bugfix/my_2_3.cnf
Normal file
8
storage/spider/mysql-test/spider/bugfix/my_2_3.cnf
Normal file
@@ -0,0 +1,8 @@
|
||||
[mysqld.2.3]
|
||||
|
||||
[ENV]
|
||||
CHILD2_3_MYPORT= @mysqld.2.3.port
|
||||
CHILD2_3_MYSOCK= @mysqld.2.3.socket
|
||||
CHILD2_3_ENGINE_TYPE= InnoDB
|
||||
CHILD2_3_ENGINE= ENGINE=InnoDB
|
||||
CHILD2_3_CHARSET= DEFAULT CHARSET=utf8
|
11
storage/spider/mysql-test/spider/bugfix/my_3_1.cnf
Normal file
11
storage/spider/mysql-test/spider/bugfix/my_3_1.cnf
Normal file
@@ -0,0 +1,11 @@
|
||||
[mysqld.3.1]
|
||||
loose_partition= 1
|
||||
|
||||
[ENV]
|
||||
USE_CHILD_GROUP3= 1
|
||||
OUTPUT_CHILD_GROUP3= 0
|
||||
CHILD3_1_MYPORT= @mysqld.3.1.port
|
||||
CHILD3_1_MYSOCK= @mysqld.3.1.socket
|
||||
CHILD3_1_ENGINE_TYPE= InnoDB
|
||||
CHILD3_1_ENGINE= ENGINE=InnoDB
|
||||
CHILD3_1_CHARSET= DEFAULT CHARSET=utf8
|
9
storage/spider/mysql-test/spider/bugfix/my_3_2.cnf
Normal file
9
storage/spider/mysql-test/spider/bugfix/my_3_2.cnf
Normal file
@@ -0,0 +1,9 @@
|
||||
[mysqld.3.2]
|
||||
loose_partition= 1
|
||||
|
||||
[ENV]
|
||||
CHILD3_2_MYPORT= @mysqld.3.2.port
|
||||
CHILD3_2_MYSOCK= @mysqld.3.2.socket
|
||||
CHILD3_2_ENGINE_TYPE= InnoDB
|
||||
CHILD3_2_ENGINE= ENGINE=InnoDB
|
||||
CHILD3_2_CHARSET= DEFAULT CHARSET=utf8
|
9
storage/spider/mysql-test/spider/bugfix/my_3_3.cnf
Normal file
9
storage/spider/mysql-test/spider/bugfix/my_3_3.cnf
Normal file
@@ -0,0 +1,9 @@
|
||||
[mysqld.3.3]
|
||||
loose_partition= 1
|
||||
|
||||
[ENV]
|
||||
CHILD3_3_MYPORT= @mysqld.3.3.port
|
||||
CHILD3_3_MYSOCK= @mysqld.3.3.socket
|
||||
CHILD3_3_ENGINE_TYPE= InnoDB
|
||||
CHILD3_3_ENGINE= ENGINE=InnoDB
|
||||
CHILD3_3_CHARSET= DEFAULT CHARSET=utf8
|
9
storage/spider/mysql-test/spider/bugfix/my_4_1.cnf
Normal file
9
storage/spider/mysql-test/spider/bugfix/my_4_1.cnf
Normal file
@@ -0,0 +1,9 @@
|
||||
[mysqld.4.1]
|
||||
loose_partition= 1
|
||||
|
||||
[ENV]
|
||||
SLAVE1_1_MYPORT= @mysqld.4.1.port
|
||||
SLAVE1_1_MYSOCK= @mysqld.4.1.socket
|
||||
SLAVE1_1_ENGINE_TYPE= MyISAM
|
||||
SLAVE1_1_ENGINE= ENGINE=MyISAM
|
||||
SLAVE1_1_CHARSET= DEFAULT CHARSET=utf8
|
@@ -0,0 +1,100 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
|
||||
this test is for MDEV-16279
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
FLUSH TABLES;
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CHECKSUM TABLE tbl_a EXTENDED;
|
||||
Table Checksum
|
||||
auto_test_local.tbl_a 1061386331
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
@@ -0,0 +1,33 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
CREATE TEMPORARY TABLE tmp_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE2
|
||||
SELECT spider_direct_sql('SELECT 22', 'tmp_a', 'srv "s_2_1", database "test"');
|
||||
spider_direct_sql('SELECT 22', 'tmp_a', 'srv "s_2_1", database "test"')
|
||||
1
|
||||
SELECT pkey FROM tmp_a;
|
||||
pkey
|
||||
22
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_0.result
Normal file
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_0.result
Normal file
@@ -0,0 +1,504 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 0;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
this test is for MDEV-16520
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 6;
|
||||
|
||||
select test 2
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 0;
|
||||
|
||||
select test 3
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection child2_2;
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_1.result
Normal file
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_1.result
Normal file
@@ -0,0 +1,504 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 1;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
this test is for MDEV-16520
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 6;
|
||||
|
||||
select test 2
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 0;
|
||||
|
||||
select test 3
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection child2_2;
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_2.result
Normal file
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_2.result
Normal file
@@ -0,0 +1,504 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 2;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
this test is for MDEV-16520
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 6;
|
||||
|
||||
select test 2
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 0;
|
||||
|
||||
select test 3
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection child2_2;
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_3.result
Normal file
504
storage/spider/mysql-test/spider/bugfix/r/quick_mode_3.result
Normal file
@@ -0,0 +1,504 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
this test is for MDEV-16520
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 6;
|
||||
|
||||
select test 2
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection master_1;
|
||||
set session spider_quick_page_byte= 0;
|
||||
|
||||
select test 3
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote`.`tbl_a` order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
connection child2_2;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 0
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 1
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 2
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 3
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 4
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 5
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 6
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 7
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 8
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 9
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 10
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 11
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 12
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 13
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 14
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 15
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 16
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 17
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 18
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 19
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 20
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 21
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 22
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 23
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 24
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 25
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 26
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 27
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 28
|
||||
select `pkey` from `auto_test_remote2`.`tbl_b` where `pkey` = 29
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_b ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection child2_2;
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
set session spider_quick_page_byte= @old_spider_quick_page_byte;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
@@ -0,0 +1,99 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
for slave1_1
|
||||
connection slave1_1;
|
||||
set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation;
|
||||
set global spider_slave_trx_isolation= 1;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection slave1_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
connection slave1_1;
|
||||
connection master_1;
|
||||
SET SESSION sql_log_bin= 0;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE2 MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
SET SESSION sql_log_bin= 1;
|
||||
connection slave1_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
connection master_1;
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
connection slave1_1;
|
||||
connection master_1;
|
||||
SET SESSION sql_log_bin= 0;
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%set %';
|
||||
argument
|
||||
set session time_zone = '+00:00'
|
||||
SET NAMES utf8
|
||||
set session transaction isolation level read committed;set session autocommit = 1;start transaction
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%set %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
connection slave1_1;
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection slave1_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection slave1_1;
|
||||
set global spider_slave_trx_isolation= @old_spider_slave_trx_isolation;
|
||||
for slave1_1
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
@@ -0,0 +1,78 @@
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
this test is for MDEV-18313
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
select test
|
||||
connection child2_1;
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
SELECT * FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %';
|
||||
argument
|
||||
select t0.`pkey` `pkey` from `auto_test_remote`.`tbl_a` t0 order by `pkey`
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%select %'
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
pkey
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
|
||||
deinit
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
connection child2_1;
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
child2_2
|
||||
child2_3
|
||||
for child3
|
||||
|
||||
end of test
|
1
storage/spider/mysql-test/spider/bugfix/suite.opt
Normal file
1
storage/spider/mysql-test/spider/bugfix/suite.opt
Normal file
@@ -0,0 +1 @@
|
||||
--loose-innodb --loose-skip-performance-schema
|
12
storage/spider/mysql-test/spider/bugfix/suite.pm
Normal file
12
storage/spider/mysql-test/spider/bugfix/suite.pm
Normal file
@@ -0,0 +1,12 @@
|
||||
package My::Suite::Spider;
|
||||
|
||||
@ISA = qw(My::Suite);
|
||||
|
||||
return "No Spider engine" unless $ENV{HA_SPIDER_SO};
|
||||
return "Not run for embedded server" if $::opt_embedded_server;
|
||||
return "Test needs --big-test" unless $::opt_big_test;
|
||||
|
||||
sub is_default { 1 }
|
||||
|
||||
bless { };
|
||||
|
@@ -0,0 +1,3 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
@@ -0,0 +1,72 @@
|
||||
--source ../include/checksum_table_with_quick_mode_3_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-16279
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
FLUSH TABLES;
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
CHECKSUM TABLE tbl_a EXTENDED;
|
||||
|
||||
--connection child2_1
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/checksum_table_with_quick_mode_3_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,3 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
@@ -0,0 +1,35 @@
|
||||
--source ../include/direct_sql_with_tmp_table_init.inc
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
--enable_warnings
|
||||
|
||||
--disable_query_log
|
||||
echo CREATE TEMPORARY TABLE tmp_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE2;
|
||||
eval CREATE TEMPORARY TABLE tmp_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE2;
|
||||
--enable_query_log
|
||||
|
||||
eval $DIRECT_SQL_COMMAND;
|
||||
SELECT pkey FROM tmp_a;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/direct_sql_with_tmp_table_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,4 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
||||
!include ../my_2_2.cnf
|
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_0.test
Normal file
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_0.test
Normal file
@@ -0,0 +1,156 @@
|
||||
--source ../include/quick_mode_0_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-16520
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
--connection child2_2
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
--disable_query_log
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
echo CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_2;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_6;
|
||||
|
||||
--echo
|
||||
--echo select test 2
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_0;
|
||||
|
||||
--echo
|
||||
--echo select test 3
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--connection child2_2
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/quick_mode_0_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,4 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
||||
!include ../my_2_2.cnf
|
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_1.test
Normal file
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_1.test
Normal file
@@ -0,0 +1,156 @@
|
||||
--source ../include/quick_mode_1_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-16520
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
--connection child2_2
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
--disable_query_log
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
echo CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_2;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_6;
|
||||
|
||||
--echo
|
||||
--echo select test 2
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_0;
|
||||
|
||||
--echo
|
||||
--echo select test 3
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--connection child2_2
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/quick_mode_1_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,4 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
||||
!include ../my_2_2.cnf
|
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_2.test
Normal file
156
storage/spider/mysql-test/spider/bugfix/t/quick_mode_2.test
Normal file
@@ -0,0 +1,156 @@
|
||||
--source ../include/quick_mode_2_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-16520
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
--connection child2_2
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
--disable_query_log
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
echo CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_2;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_6;
|
||||
|
||||
--echo
|
||||
--echo select test 2
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_0;
|
||||
|
||||
--echo
|
||||
--echo select test 3
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--connection child2_2
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/quick_mode_2_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,4 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
||||
!include ../my_2_2.cnf
|
157
storage/spider/mysql-test/spider/bugfix/t/quick_mode_3.test
Normal file
157
storage/spider/mysql-test/spider/bugfix/t/quick_mode_3.test
Normal file
@@ -0,0 +1,157 @@
|
||||
--source ../include/quick_mode_3_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-16520
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
--connection child2_2
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
--disable_query_log
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
echo CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_2;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_b (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_2;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
INSERT INTO tbl_b (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_b (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_b (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_6;
|
||||
|
||||
--echo
|
||||
--echo select test 2
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--connection master_1
|
||||
eval $MASTER_1_SET_QUICK_PAGE_BYTE_0;
|
||||
|
||||
--echo
|
||||
--echo select test 3
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection child2_2
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT a.pkey FROM tbl_a a, tbl_b b WHERE a.pkey = b.pkey;
|
||||
|
||||
--connection child2_1
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection child2_2
|
||||
--replace_regex /tmp_spider_bka_0x[0-9a-f]*/tmp_spider_bka_xxxx/
|
||||
eval $CHILD2_2_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_2_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--connection child2_2
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/quick_mode_3_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,4 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
||||
!include ../my_4_1.cnf
|
@@ -0,0 +1,95 @@
|
||||
--source ../include/slave_trx_isolation_init.inc
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection slave1_1
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
save_master_pos;
|
||||
|
||||
--connection slave1_1
|
||||
sync_with_master;
|
||||
|
||||
--connection master_1
|
||||
SET SESSION sql_log_bin= 0;
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE2 MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE2 $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
--enable_query_log
|
||||
SET SESSION sql_log_bin= 1;
|
||||
|
||||
--connection slave1_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
--enable_query_log
|
||||
|
||||
--connection master_1
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
save_master_pos;
|
||||
|
||||
--connection slave1_1
|
||||
sync_with_master;
|
||||
|
||||
--connection master_1
|
||||
SET SESSION sql_log_bin= 0;
|
||||
|
||||
--connection child2_1
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--connection slave1_1
|
||||
SELECT pkey FROM tbl_a ORDER BY pkey;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection slave1_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/slave_trx_isolation_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -0,0 +1,3 @@
|
||||
!include include/default_mysqld.cnf
|
||||
!include ../my_1_1.cnf
|
||||
!include ../my_2_1.cnf
|
@@ -0,0 +1,69 @@
|
||||
--source ../include/wrapper_mariadb_init.inc
|
||||
--echo
|
||||
--echo this test is for MDEV-18313
|
||||
--echo
|
||||
--echo drop and create databases
|
||||
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--enable_warnings
|
||||
|
||||
--echo
|
||||
--echo create table and insert
|
||||
|
||||
--connection child2_1
|
||||
--disable_query_log
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
--enable_query_log
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE MASTER_1_CHARSET MASTER_1_COMMENT_2_1;
|
||||
eval CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
--enable_query_log
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
--echo
|
||||
--echo select test
|
||||
|
||||
--connection child2_1
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
|
||||
--connection master_1
|
||||
SELECT * FROM tbl_a ORDER BY pkey;
|
||||
|
||||
--connection child2_1
|
||||
eval $CHILD2_1_SELECT_ARGUMENT1;
|
||||
eval $CHILD2_1_SELECT_TABLES;
|
||||
|
||||
--echo
|
||||
--echo deinit
|
||||
--disable_warnings
|
||||
|
||||
--connection master_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
|
||||
--connection child2_1
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
|
||||
--enable_warnings
|
||||
--source ../include/wrapper_mariadb_deinit.inc
|
||||
--echo
|
||||
--echo end of test
|
@@ -1,11 +1,10 @@
|
||||
--let $MASTER_1_COMMENT_2_1= $MASTER_1_COMMENT_2_1_BACKUP
|
||||
--let $CHILD2_1_DROP_TABLES= $CHILD2_1_DROP_TABLES_BACKUP
|
||||
--let $CHILD2_1_CREATE_TABLES= $CHILD2_1_CREATE_TABLES_BACKUP
|
||||
--let $CHILD2_1_SELECT_TABLES= $CHILD2_1_SELECT_TABLES_BACKUP
|
||||
--let $OUTPUT_CHILD_GROUP2= $OUTPUT_CHILD_GROUP2_BACKUP
|
||||
--let $USE_GENERAL_LOG= $USE_GENERAL_LOG_BACKUP
|
||||
--connection master_1
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
--disable_warnings
|
||||
--disable_query_log
|
||||
--disable_result_log
|
||||
|
@@ -29,3 +29,5 @@ let $CHILD2_1_SELECT_ARGUMENT1=
|
||||
--connection master_1
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
|
@@ -10,26 +10,24 @@ child3_3
|
||||
connection master_1;
|
||||
set @old_spider_quick_mode= @@spider_quick_mode;
|
||||
set session spider_quick_mode= 3;
|
||||
set @old_spider_quick_page_size= @@spider_quick_page_size;
|
||||
set session spider_quick_page_size= 3;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
@@ -37,6 +35,7 @@ PRIMARY KEY (pkey)
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
FLUSH TABLES;
|
||||
|
||||
select test 1
|
||||
connection child2_1;
|
||||
@@ -91,6 +90,7 @@ DROP DATABASE IF EXISTS auto_test_remote;
|
||||
SET GLOBAL log_output = @old_log_output;
|
||||
connection master_1;
|
||||
set session spider_quick_mode= @old_spider_quick_mode;
|
||||
set session spider_quick_page_size= @old_spider_quick_page_size;
|
||||
for master_1
|
||||
for child2
|
||||
child2_1
|
||||
|
@@ -16,34 +16,27 @@ set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_DROP_TABLES
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
|
@@ -16,34 +16,27 @@ set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_DROP_TABLES
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
|
@@ -16,34 +16,27 @@ set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_DROP_TABLES
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
|
@@ -16,34 +16,27 @@ set @old_spider_quick_page_byte= @@spider_quick_page_byte;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
connection child2_2;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection child2_2;
|
||||
CHILD2_2_DROP_TABLES
|
||||
CHILD2_2_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
|
@@ -14,37 +14,31 @@ set global spider_slave_trx_isolation= 1;
|
||||
|
||||
drop and create databases
|
||||
connection master_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection slave1_1;
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
connection child2_1;
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
|
||||
create table and insert
|
||||
connection child2_1;
|
||||
CHILD2_1_DROP_TABLES
|
||||
CHILD2_1_CREATE_TABLES
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
connection master_1;
|
||||
connection slave1_1;
|
||||
connection master_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
SET SESSION sql_log_bin= 0;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
) MASTER_1_ENGINE2 MASTER_1_CHARSET MASTER_1_COMMENT_2_1
|
||||
connection master_1;
|
||||
SET SESSION sql_log_bin= 1;
|
||||
connection slave1_1;
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
PRIMARY KEY (pkey)
|
||||
@@ -53,6 +47,7 @@ connection master_1;
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
connection slave1_1;
|
||||
connection master_1;
|
||||
SET SESSION sql_log_bin= 0;
|
||||
connection child2_1;
|
||||
SELECT argument FROM mysql.general_log WHERE argument LIKE '%set %';
|
||||
argument
|
||||
|
@@ -3,7 +3,6 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_CHILD_GROUP2)
|
||||
@@ -14,7 +13,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
}
|
||||
@@ -33,12 +31,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -55,9 +49,6 @@ if ($USE_CHILD_GROUP2)
|
||||
}
|
||||
}
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
@@ -71,6 +62,7 @@ eval CREATE TABLE tbl_a (
|
||||
INSERT INTO tbl_a (pkey) VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
INSERT INTO tbl_a (pkey) VALUES (10),(11),(12),(13),(14),(15),(16),(17),(18),(19);
|
||||
INSERT INTO tbl_a (pkey) VALUES (20),(21),(22),(23),(24),(25),(26),(27),(28),(29);
|
||||
FLUSH TABLES;
|
||||
|
||||
--echo
|
||||
--echo select test 1
|
||||
|
@@ -3,7 +3,6 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_CHILD_GROUP2)
|
||||
@@ -14,7 +13,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--connection child2_2
|
||||
@@ -23,7 +21,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
}
|
||||
@@ -42,12 +39,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -61,12 +54,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_2_DROP_TABLES;
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_2_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -83,10 +72,6 @@ if ($USE_CHILD_GROUP2)
|
||||
}
|
||||
}
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
|
@@ -3,7 +3,6 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_CHILD_GROUP2)
|
||||
@@ -14,7 +13,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--connection child2_2
|
||||
@@ -23,7 +21,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
}
|
||||
@@ -42,12 +39,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -61,12 +54,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_2_DROP_TABLES;
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_2_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -83,10 +72,6 @@ if ($USE_CHILD_GROUP2)
|
||||
}
|
||||
}
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
|
@@ -3,7 +3,6 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_CHILD_GROUP2)
|
||||
@@ -14,7 +13,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--connection child2_2
|
||||
@@ -23,7 +21,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
}
|
||||
@@ -42,12 +39,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -61,12 +54,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_2_DROP_TABLES;
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_2_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -83,10 +72,6 @@ if ($USE_CHILD_GROUP2)
|
||||
}
|
||||
}
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
|
@@ -3,7 +3,6 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_CHILD_GROUP2)
|
||||
@@ -14,7 +13,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
--connection child2_2
|
||||
@@ -23,7 +21,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote2;
|
||||
CREATE DATABASE auto_test_remote2;
|
||||
USE auto_test_remote2;
|
||||
}
|
||||
@@ -42,12 +39,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -61,12 +54,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_2_DROP_TABLES;
|
||||
echo CHILD2_2_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_2_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_2_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -83,10 +72,6 @@ if ($USE_CHILD_GROUP2)
|
||||
}
|
||||
}
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
DROP TABLE IF EXISTS tbl_b;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
|
@@ -3,13 +3,11 @@
|
||||
--echo drop and create databases
|
||||
--connection master_1
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
if ($USE_REPLICATION)
|
||||
{
|
||||
--connection slave1_1
|
||||
DROP DATABASE IF EXISTS auto_test_local;
|
||||
CREATE DATABASE auto_test_local;
|
||||
USE auto_test_local;
|
||||
}
|
||||
@@ -21,7 +19,6 @@ if ($USE_CHILD_GROUP2)
|
||||
SET @old_log_output = @@global.log_output;
|
||||
SET GLOBAL log_output = 'TABLE,FILE';
|
||||
}
|
||||
DROP DATABASE IF EXISTS auto_test_remote;
|
||||
CREATE DATABASE auto_test_remote;
|
||||
USE auto_test_remote;
|
||||
}
|
||||
@@ -40,12 +37,8 @@ if ($USE_CHILD_GROUP2)
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
--disable_query_log
|
||||
echo CHILD2_1_DROP_TABLES;
|
||||
echo CHILD2_1_CREATE_TABLES;
|
||||
}
|
||||
--disable_warnings
|
||||
eval $CHILD2_1_DROP_TABLES;
|
||||
--enable_warnings
|
||||
eval $CHILD2_1_CREATE_TABLES;
|
||||
if ($OUTPUT_CHILD_GROUP2)
|
||||
{
|
||||
@@ -68,13 +61,8 @@ if ($USE_REPLICATION)
|
||||
--connection slave1_1
|
||||
sync_with_master;
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
SET SESSION sql_log_bin= 0;
|
||||
--enable_query_log
|
||||
}
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
@@ -85,14 +73,10 @@ eval CREATE TABLE tbl_a (
|
||||
PRIMARY KEY (pkey)
|
||||
) $MASTER_1_ENGINE2 $MASTER_1_CHARSET $MASTER_1_COMMENT_2_1;
|
||||
--enable_query_log
|
||||
--connection master_1
|
||||
if ($USE_REPLICATION)
|
||||
{
|
||||
SET SESSION sql_log_bin= 1;
|
||||
--connection slave1_1
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS tbl_a;
|
||||
--enable_warnings
|
||||
--disable_query_log
|
||||
echo CREATE TABLE tbl_a (
|
||||
pkey int NOT NULL,
|
||||
@@ -112,9 +96,7 @@ if ($USE_REPLICATION)
|
||||
--connection slave1_1
|
||||
sync_with_master;
|
||||
--connection master_1
|
||||
--disable_query_log
|
||||
SET SESSION sql_log_bin= 0;
|
||||
--enable_query_log
|
||||
}
|
||||
if ($USE_CHILD_GROUP2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user