1
0
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:
serg@serg.mylan
2005-03-02 10:38:25 +01:00
parent 8f5ca7483a
commit 02d88c398f
13 changed files with 66 additions and 61 deletions

View File

@@ -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

View File

@@ -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;