diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-03-11 20:18:22 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-03-14 08:55:59 +0100 |
commit | bfed2c7d57a7ca34936d6ef0688af7357592dc40 (patch) | |
tree | 39b29c2bbbdc3276abb4c1e4ca0e789bea740a2e /mysql-test/main/partition_not_blackhole.result | |
parent | f217c761892683403b65da75b2f2abb8ebd295b2 (diff) | |
download | mariadb-git-bfed2c7d57a7ca34936d6ef0688af7357592dc40.tar.gz |
MDEV-27753 Incorrect ENGINE type of table after crash for CONNECT table
whenever possible, partitioning should use the full
partition plugin name, not the one byte legacy code.
Normally, ha_partition can get the engine plugin from
table_share->default_part_plugin.
But in some cases, e.g. in DROP TABLE, the table isn't
opened, table_share is NULL, and ha_partition has to parse
the frm, much like dd_frm_type() does.
temporary_tables.cc, sql_table.cc:
When dropping a table, it must be deleted in the engine
first, then frm file. Because frm can be the only true
source of metadata that the engine might need for DROP.
table.cc:
when opening a partitioned table, if the engine for
partitions is not found, do not fallback to MyISAM.
Diffstat (limited to 'mysql-test/main/partition_not_blackhole.result')
-rw-r--r-- | mysql-test/main/partition_not_blackhole.result | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/partition_not_blackhole.result b/mysql-test/main/partition_not_blackhole.result index ff1e51df892..7759f947c32 100644 --- a/mysql-test/main/partition_not_blackhole.result +++ b/mysql-test/main/partition_not_blackhole.result @@ -9,7 +9,7 @@ SHOW TABLES; Tables_in_test t1 SHOW CREATE TABLE t1; -ERROR HY000: Failed to read from the .par file +ERROR HY000: Incorrect information in file: './test/t1.frm' DROP TABLE t1; ERROR HY000: Got error 1 "Operation not permitted" from storage engine partition t1.frm |