Skip to content

Commit 5c9c81e

Browse files
MDEV-37204 fix view-protocol in spider/bugfix.index
mtr --view-protocol causes a separate thread for execution of SELECT statements, thus set global spider_same_server_link is needed. The other issue is opened as MDEV-37568
1 parent fd39c63 commit 5c9c81e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

storage/spider/mysql-test/spider/bugfix/r/index.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ for child2
33
for child3
44
create database auto_test_local;
55
set spider_same_server_link= on;
6+
set global spider_same_server_link= on;
67
#
78
# MDEV-27590 Auto-increment on Spider tables with DESC PK does not work properly
89
#

storage/spider/mysql-test/spider/bugfix/t/index.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--enable_query_log
66
create database auto_test_local;
77
set spider_same_server_link= on;
8+
set global spider_same_server_link= on;
89

910
--echo #
1011
--echo # MDEV-27590 Auto-increment on Spider tables with DESC PK does not work properly
@@ -16,7 +17,10 @@ create or replace table t_sp1 (id int auto_increment, primary key(id desc))
1617
engine=Spider COMMENT='wrapper "mysql", srv "s_1", table "t"';
1718
insert into t_sp1 () values (),(),();
1819
insert into t_sp1 () values (),(),();
20+
# MDEV-37568
21+
--disable_view_protocol
1922
select * from t_sp1;
23+
--enable_view_protocol
2024
drop table t_sp1, auto_test_local.t;
2125

2226
--echo #

0 commit comments

Comments
 (0)