summaryrefslogtreecommitdiff
path: root/mysql-test/suite/archive/repair.test
blob: 48ec6b706f3815ffee34c00675f80296c98546b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# MDEV-4444 Server crashes with "safe_mutex: Trying to destroy a mutex share->mutex that was locked" on attempt to recover an archive table
#

--source include/have_archive.inc

call mtr.add_suppression("Table 't1' is marked as crashed and should be repaired");

--let $datadir = `SELECT @@datadir`

create table t1 (a int) engine=archive;
insert into t1 values (1);
--remove_file $datadir/test/t1.ARZ
--error 13,1017
select * from t1;
--error ER_CRASHED_ON_USAGE
insert into t1 values (2);
repair table t1;
drop table t1;