1drop table if exists t1;
2Warnings:
3Note	1051	Unknown table 'test.t1'
4#
5# MDEV-7314
6# Concurrent "INSERT INTO table SELECT MAX(id)+1 FROM table" are
7# hitting deadlocks on Aria tables using ROW_FORMAT=PAGE
8#
9create table t1 (pk int primary key) engine=Aria;
10insert into t1 values (1);
11insert into t1 select sleep(2)+1 from t1;
12connect  con1,localhost,root,,;
13insert into t1 select 2 from t1;
14connection default;
15select * from t1;
16pk
171
182
19drop table t1;
20