mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
72ba96a48e
Tests with checking metadata or that cannot be run with the view-protocol are excluded from --view-protocol. For tests that do not allow the use of an additional connection, the util connection is disabled with "--disable_service_connection". Also cases with bugs for --view-protocol are disabled.
60 lines
1.1 KiB
Text
60 lines
1.1 KiB
Text
--echo #
|
|
--echo # MDEV-8475 stale .TMM file causes Aria engine to stop serving the table
|
|
--echo #
|
|
--disable_service_connection
|
|
create table t1 (pk int primary key, i int) engine=MyISAM;
|
|
insert into t1 values (1,1),(2,2);
|
|
--let $datadir=`SELECT @@datadir`
|
|
|
|
--write_file $datadir/test/t1.TMM
|
|
EOF
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
# Cleanup
|
|
--connection default
|
|
DROP TABLE t1;
|
|
|
|
#
|
|
# Test also Aria
|
|
#
|
|
|
|
create table t1 (pk int primary key, i int) engine=aria;
|
|
insert into t1 values (1,1),(2,2);
|
|
--let $datadir=`SELECT @@datadir`
|
|
|
|
--write_file $datadir/test/t1.TMM
|
|
EOF
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
--connect (con1,localhost,root,,)
|
|
SHOW CREATE TABLE t1;
|
|
OPTIMIZE TABLE t1;
|
|
--disconnect con1
|
|
|
|
# Cleanup
|
|
--connection default
|
|
DROP TABLE t1;
|
|
--enable_service_connection
|