mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for merge.test failures in mysql-5.5-runtime
tree for embedded server Test case for bug #56251 "Deadlock with INSERT DELAYED and MERGE tables" can't be run against embedded server. Embedded server converts all DELAYED INSERTs into ordinary INSERTs and this test can't work properly if such conversion happens. Moved this test from merge.test to delayed.test which is skipped if test suite is run with --embedded-server option.
This commit is contained in:
@ -3575,32 +3575,4 @@ ERROR HY000: The definition of table 'v1' prevents operation DELETE on table 'm1
|
||||
drop view v1;
|
||||
drop temporary table tmp;
|
||||
drop table t1, t2, t3, m1, m2;
|
||||
#
|
||||
# Test for bug #56251 "Deadlock with INSERT DELAYED and MERGE tables".
|
||||
#
|
||||
drop table if exists t1, t2, tm;
|
||||
create table t1(a int);
|
||||
create table t2(a int);
|
||||
create table tm(a int) engine=merge union=(t1, t2);
|
||||
begin;
|
||||
select * from t1;
|
||||
a
|
||||
# Connection 'con1'.
|
||||
# Sending:
|
||||
alter table t1 comment 'test';
|
||||
# Connection 'default'.
|
||||
# Wait until ALTER TABLE blocks and starts waiting
|
||||
# for connection 'default'. It should wait with a
|
||||
# pending SNW lock on 't1'.
|
||||
# Attempt to perform delayed insert into 'tm' should not lead
|
||||
# to a deadlock. Instead error ER_DELAYED_NOT_SUPPORTED should
|
||||
# be emitted.
|
||||
insert delayed into tm values (1);
|
||||
ERROR HY000: DELAYED option not supported for table 'tm'
|
||||
# Unblock ALTER TABLE.
|
||||
commit;
|
||||
# Connection 'con1'.
|
||||
# Reaping ALTER TABLE:
|
||||
# Connection 'default'.
|
||||
drop tables tm, t1, t2;
|
||||
End of 6.0 tests
|
||||
|
Reference in New Issue
Block a user