diff options
author | Sachin <sachin.setiya@mariadb.com> | 2020-05-22 22:44:37 +0530 |
---|---|---|
committer | Sachin <sachin.setiya@mariadb.com> | 2020-06-17 02:22:46 +0530 |
commit | 592a10d0799807b19ee68ff6c391ee52d564b822 (patch) | |
tree | ac7a688f928a83c471714dd8798a5057d0d544b8 /client | |
parent | 0128e13e6218fab10e247bc213e652a0faedd75a (diff) | |
download | mariadb-git-592a10d0799807b19ee68ff6c391ee52d564b822.tar.gz |
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
Problem:- When we issue FTWRL with shutdown in parallel, there is race between
FTWRL and shutdown. Shutdown might destroy the mutex (pool->LOCK_rpl_thread_pool)
before FTWRL can lock it. So we can get crash on FTWRL thread
Solution:- mysql_mutex_destroy(pool->LOCK_rpl_thread_pool) should wait for
FTWRL thread to complete its work , and then destroy.
So slave_prepare_for_shutdown will just deactivate the pool, and mutex is destroyed
later in end_slave()
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions