mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
1. Slice of fix for Bug#42003 tests missing the disconnect of connections <> default
- If missing: add "disconnect <session>" - If physical disconnect of non "default" sessions is not finished at test end: add routine which waits till this happened + additional improvements like - remove superfluous files created by the test - replace error numbers by error names - remove trailing spaces, replace tabs by spaces - unify writing of bugs within comments - correct comments - minor changes of formatting Modifications according to the code review are included. Fixed tests: grant2 grant3 lock_tables_lost_commit mysqldump openssl_1 outfile
This commit is contained in:
@ -1,24 +1,33 @@
|
||||
# This is a test for bug 578
|
||||
# Test for Bug#578 mysqlimport -l silently fails when binlog-ignore-db is set
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
--source include/have_innodb.inc
|
||||
|
||||
# Save the initial number of concurrent sessions
|
||||
--source include/count_sessions.inc
|
||||
|
||||
connect (con1,localhost,root,,);
|
||||
connect (con2,localhost,root,,);
|
||||
|
||||
connection con1;
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
create table t1(a int) engine=innodb;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a INT) ENGINE=innodb;
|
||||
--enable_warnings
|
||||
lock tables t1 write;
|
||||
insert into t1 values(10);
|
||||
LOCK TABLES t1 WRITE;
|
||||
INSERT INTO t1 VALUES(10);
|
||||
disconnect con1;
|
||||
|
||||
connection con2;
|
||||
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit,
|
||||
# and the other commit when we write to the binlog was not done because of
|
||||
# binlog-ignore-db
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
# binlog-ignore-db
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
connection default;
|
||||
disconnect con2;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
# Wait till we reached the initial number of concurrent sessions
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
Reference in New Issue
Block a user