mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-20487: Fix a test
The test rpl.rpl_failed_drop_tbl_binlog exercises a scenario where the adaptive hash index is enabled. Try to explicitly enable the adaptive hash index for this test, and skip the test if it does not succeed (that is, if the server was not built WITH_INNODB_AHI=ON).
This commit is contained in:
1
mysql-test/suite/rpl/t/rpl_failed_drop_tbl_binlog.opt
Normal file
1
mysql-test/suite/rpl/t/rpl_failed_drop_tbl_binlog.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--loose-innodb-adaptive-hash-index
|
@@ -26,6 +26,11 @@
|
|||||||
--source include/have_binlog_format_statement.inc
|
--source include/have_binlog_format_statement.inc
|
||||||
--source include/master-slave.inc
|
--source include/master-slave.inc
|
||||||
|
|
||||||
|
if (!`select @@GLOBAL.innodb_adaptive_hash_index`)
|
||||||
|
{
|
||||||
|
--skip Need innodb_adaptive_hash_index
|
||||||
|
}
|
||||||
|
|
||||||
create table t1 (a int) engine=innodb;
|
create table t1 (a int) engine=innodb;
|
||||||
create table t2 (b longblob) engine=innodb;
|
create table t2 (b longblob) engine=innodb;
|
||||||
create table t3 (c int) engine=innodb;
|
create table t3 (c int) engine=innodb;
|
||||||
|
Reference in New Issue
Block a user