mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Fixed LP:990187 Assertion `share->reopen == 1' failed at maria_extra on ADD PARTITION
mysql-test/suite/maria/maria-partitioning.result: New test case mysql-test/suite/maria/maria-partitioning.test: New test case sql/sql_base.cc: Ignore HA_EXTRA_NORMAL for wait_while_table_is_used() More DBUG sql/sql_partition.cc: Don't use HA_EXTRA_FORCE_REOPEN for wait_while_table_is_used() as the table is opened multiple times (in prep_alter_part_table) This fixes the assert in Aria where we check if table is opened multiple times if HA_EXTRA_FORCE_REOPEN is issued
This commit is contained in:
parent
c39da19c4a
commit
26cc22f3fe
4 changed files with 21 additions and 4 deletions
|
|
@ -28,3 +28,7 @@ insert into t1 values (2);
|
|||
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
|
||||
a a
|
||||
drop table t1,t2;
|
||||
CREATE TABLE t1 ( i INT ) ENGINE=Aria
|
||||
PARTITION BY HASH(i) PARTITIONS 2;
|
||||
ALTER TABLE t1 ADD PARTITION PARTITIONS 2;
|
||||
drop table t1;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,15 @@ insert into t1 values (2);
|
|||
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# LP:990187
|
||||
# Assertion `share->reopen == 1' failed at maria_extra on ADD PARTITION
|
||||
#
|
||||
CREATE TABLE t1 ( i INT ) ENGINE=Aria
|
||||
PARTITION BY HASH(i) PARTITIONS 2;
|
||||
ALTER TABLE t1 ADD PARTITION PARTITIONS 2;
|
||||
drop table t1;
|
||||
|
||||
# Set defaults back
|
||||
--disable_result_log
|
||||
--disable_query_log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue