Commit 57f827cd authored by Aleksey Midenkov's avatar Aleksey Midenkov

MDEV-14741 Assertion '(trx)->start_file == 0' failed

in row_truncate_table_for_mysql()
parent 7f1777af
......@@ -354,5 +354,13 @@ create or replace table t2 (f int);
create trigger tr before insert on t2
for each row select count(*) from t1 into @a;
insert into t2 values (1);
# MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
create or replace table t1 (i int) with system versioning
partition by system_time interval 1 hour (
partition p1 history,
partition pn current);
set autocommit= off;
truncate table t1;
set autocommit= on;
drop table t1;
drop table t2;
......@@ -303,6 +303,14 @@ create trigger tr before insert on t2
for each row select count(*) from t1 into @a;
insert into t2 values (1);
--echo # MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
create or replace table t1 (i int) with system versioning
partition by system_time interval 1 hour (
partition p1 history,
partition pn current);
set autocommit= off;
truncate table t1;
set autocommit= on;
drop table t1;
drop table t2;
......
......@@ -1072,7 +1072,10 @@ class Table_locker
thd->lock= saved_lock;
thd->locked_tables_mode= saved_mode;
if (locked && !thd->in_sub_stmt)
{
ha_commit_trans(thd, false);
ha_commit_trans(thd, true);
}
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment