mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
add partition test
This commit is contained in:
committed by
Sergei Golubchik
parent
5f206259e5
commit
5361b87093
@ -1210,6 +1210,27 @@ set debug_sync= 'now signal goon';
|
|||||||
connection default;
|
connection default;
|
||||||
drop table t;
|
drop table t;
|
||||||
drop function f;
|
drop function f;
|
||||||
|
# Partitioning
|
||||||
|
create or replace table t1 (a serial);
|
||||||
|
insert t1 values (5), (6), (7);
|
||||||
|
set debug_sync= 'alter_table_online_downgraded SIGNAL downgraded wait_for goon';
|
||||||
|
alter table t1 ENGINE=InnoDB, ALGORITHM=COPY, LOCK=NONE
|
||||||
|
PARTITION BY HASH(a) PARTITIONS 5;
|
||||||
|
connection con1;
|
||||||
|
set debug_sync= 'now WAIT_FOR downgraded';
|
||||||
|
insert into t1 values (123), (456), (789);
|
||||||
|
update t1 set a= a+100;
|
||||||
|
set debug_sync= 'now SIGNAL goon';
|
||||||
|
connection default;
|
||||||
|
select * from t1;
|
||||||
|
a
|
||||||
|
105
|
||||||
|
106
|
||||||
|
556
|
||||||
|
107
|
||||||
|
223
|
||||||
|
889
|
||||||
|
drop table t1;
|
||||||
disconnect con1;
|
disconnect con1;
|
||||||
#
|
#
|
||||||
# End of 11.2 tests
|
# End of 11.2 tests
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
--source include/not_embedded.inc
|
--source include/not_embedded.inc
|
||||||
--source include/binlog_combinations.inc
|
--source include/binlog_combinations.inc
|
||||||
--source include/have_innodb.inc
|
--source include/have_innodb.inc
|
||||||
|
--source include/have_partition.inc
|
||||||
set default_storage_engine= innodb;
|
set default_storage_engine= innodb;
|
||||||
|
|
||||||
--connect (con2, localhost, root,,)
|
--connect (con2, localhost, root,,)
|
||||||
@ -1396,8 +1397,28 @@ set debug_sync= 'now signal goon';
|
|||||||
--reap
|
--reap
|
||||||
drop table t;
|
drop table t;
|
||||||
drop function f;
|
drop function f;
|
||||||
--disconnect con1
|
|
||||||
|
|
||||||
|
--echo # Partitioning
|
||||||
|
create or replace table t1 (a serial);
|
||||||
|
insert t1 values (5), (6), (7);
|
||||||
|
|
||||||
|
set debug_sync= 'alter_table_online_downgraded SIGNAL downgraded wait_for goon';
|
||||||
|
send alter table t1 ENGINE=InnoDB, ALGORITHM=COPY, LOCK=NONE
|
||||||
|
PARTITION BY HASH(a) PARTITIONS 5;
|
||||||
|
|
||||||
|
--connection con1
|
||||||
|
set debug_sync= 'now WAIT_FOR downgraded';
|
||||||
|
insert into t1 values (123), (456), (789);
|
||||||
|
update t1 set a= a+100;
|
||||||
|
set debug_sync= 'now SIGNAL goon';
|
||||||
|
|
||||||
|
--connection default
|
||||||
|
--reap
|
||||||
|
select * from t1;
|
||||||
|
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
--disconnect con1
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 11.2 tests
|
--echo # End of 11.2 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
Reference in New Issue
Block a user