summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/mdev_22370.test
blob: 86bc527ebc0455d9722a47c1daadacf50e72107f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# MDEV-22370 safe_mutex: Trying to lock uninitialized mutex at
#   /data/src/10.4-bug/sql/rpl_parallel.cc, line 470 upon shutdown during FTWRL
#
# Purpose of this test case to test crash while FTWRL and shutdown is in race
# condition
# Shutdown can execute first and destroy the mutex making mutex_lock in pool_mark_busy
# to crash

--source include/have_debug.inc
--connect (con1,localhost,root,,)
SET DEBUG_DBUG='+d,mark_busy_mdev_22370';
--send
  FLUSH TABLES WITH READ LOCK;

--connection default
--source include/restart_mysqld.inc