File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
mysql-test/suite/versioning Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -354,5 +354,13 @@ create or replace table t2 (f int);
354
354
create trigger tr before insert on t2
355
355
for each row select count(*) from t1 into @a;
356
356
insert into t2 values (1);
357
+ # MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
358
+ create or replace table t1 (i int) with system versioning
359
+ partition by system_time interval 1 hour (
360
+ partition p1 history,
361
+ partition pn current);
362
+ set autocommit= off;
363
+ truncate table t1;
364
+ set autocommit= on;
357
365
drop table t1;
358
366
drop table t2;
Original file line number Diff line number Diff line change @@ -303,6 +303,14 @@ create trigger tr before insert on t2
303
303
for each row select count(*) from t1 into @a;
304
304
insert into t2 values (1);
305
305
306
+ --echo # MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
307
+ create or replace table t1 (i int) with system versioning
308
+ partition by system_time interval 1 hour (
309
+ partition p1 history,
310
+ partition pn current);
311
+ set autocommit= off;
312
+ truncate table t1;
313
+ set autocommit= on;
306
314
307
315
drop table t1;
308
316
drop table t2;
Original file line number Diff line number Diff line change @@ -1072,7 +1072,10 @@ class Table_locker
1072
1072
thd->lock = saved_lock;
1073
1073
thd->locked_tables_mode = saved_mode;
1074
1074
if (locked && !thd->in_sub_stmt )
1075
+ {
1075
1076
ha_commit_trans (thd, false );
1077
+ ha_commit_trans (thd, true );
1078
+ }
1076
1079
}
1077
1080
};
1078
1081
You can’t perform that action at this time.
0 commit comments