#
# MDEV-29962 SIGSEGV in ha_spider::lock_tables on BEGIN after table lock
#
for master_1
for child2
for child3
set spider_same_server_link= 1;
set global spider_same_server_link= 1;
CREATE SERVER srv FOREIGN DATA WRAPPER mysql
OPTIONS (SOCKET "$MASTER_1_MYSOCK", DATABASE 'test',user 'root');
CREATE TABLE t (c INT) ENGINE=InnoDB;
CREATE TABLE t1 (c INT) ENGINE=Spider COMMENT='WRAPPER "mysql",srv "srv",TABLE "t"';
Warnings:
Warning	138	Spider table params in COMMENT or CONNECTION strings have been deprecated and will be removed in a future release. Please use table options instead.
SELECT * FROM t1;
c
LOCK TABLES t1 WRITE CONCURRENT,t1 AS t2 READ;
BEGIN;
drop table t, t1;
drop server srv;
for master_1
for child2
for child3
#
# end of test mdev_29962
#
