mirror of
https://github.com/MariaDB/server.git
synced 2025-11-06 13:10:12 +03:00
bug#8151 - truncate leaves a transaction open
deadlock in MYSQL_LOG::new_file() style fixes
This commit is contained in:
@@ -906,6 +906,7 @@ truncate table t1;
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
commit;
|
||||
truncate table t1;
|
||||
truncate table t1;
|
||||
select * from t1;
|
||||
a
|
||||
insert into t1 values(1),(2);
|
||||
@@ -924,6 +925,7 @@ a
|
||||
1
|
||||
2
|
||||
truncate table t1;
|
||||
truncate table t1;
|
||||
insert into t1 values(1),(2);
|
||||
delete from t1;
|
||||
select * from t1;
|
||||
@@ -1637,14 +1639,14 @@ t2 CREATE TABLE `t2` (
|
||||
drop table t2, t1;
|
||||
show status like "binlog_cache_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_use 152
|
||||
Binlog_cache_use 154
|
||||
show status like "binlog_cache_disk_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_disk_use 0
|
||||
create table t1 (a int) engine=innodb;
|
||||
show status like "binlog_cache_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_use 153
|
||||
Binlog_cache_use 155
|
||||
show status like "binlog_cache_disk_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_disk_use 1
|
||||
@@ -1653,7 +1655,7 @@ delete from t1;
|
||||
commit;
|
||||
show status like "binlog_cache_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_use 154
|
||||
Binlog_cache_use 156
|
||||
show status like "binlog_cache_disk_use";
|
||||
Variable_name Value
|
||||
Binlog_cache_disk_use 1
|
||||
|
||||
@@ -591,6 +591,7 @@ insert into t1 values(1),(2);
|
||||
truncate table t1;
|
||||
commit;
|
||||
truncate table t1;
|
||||
truncate table t1;
|
||||
select * from t1;
|
||||
insert into t1 values(1),(2);
|
||||
delete from t1;
|
||||
@@ -605,6 +606,7 @@ truncate table t1;
|
||||
insert into t1 values(1),(2);
|
||||
select * from t1;
|
||||
truncate table t1;
|
||||
truncate table t1;
|
||||
insert into t1 values(1),(2);
|
||||
delete from t1;
|
||||
select * from t1;
|
||||
|
||||
Reference in New Issue
Block a user