| 1 |
# |
| 2 |
# MDEV-4444 Server crashes with "safe_mutex: Trying to destroy a mutex share->mutex that was locked" on attempt to recover an archive table |
| 3 |
# |
| 4 |
|
| 5 |
--source include/have_archive.inc |
| 6 |
|
| 7 |
call mtr.add_suppression("Table 't1' is marked as crashed and should be repaired"); |
| 8 |
|
| 9 |
--let $datadir = `SELECT @@datadir` |
| 10 |
|
| 11 |
create table t1 (a int) engine=archive; |
| 12 |
insert into t1 values (1); |
| 13 |
--remove_file $datadir/test/t1.ARZ |
| 14 |
--error 13,1017 |
| 15 |
select * from t1; |
| 16 |
--error ER_CRASHED_ON_USAGE |
| 17 |
insert into t1 values (2); |
| 18 |
repair table t1; |
| 19 |
drop table t1; |