mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-26558 Fix a deadlock due to cyclic dependence
Fix a potential deadlock bug between locks ctrl_mutex and entry->mutex
This commit is contained in:
parent
ef179dadf4
commit
f809a4fbd0
1 changed files with 1 additions and 1 deletions
|
@ -443,8 +443,8 @@ extract_worker_thread_func(void *arg)
|
|||
}
|
||||
|
||||
if (chunk.type == XB_CHUNK_TYPE_EOF) {
|
||||
pthread_mutex_lock(ctxt->mutex);
|
||||
pthread_mutex_unlock(&entry->mutex);
|
||||
pthread_mutex_lock(ctxt->mutex);
|
||||
my_hash_delete(ctxt->filehash, (uchar *) entry);
|
||||
pthread_mutex_unlock(ctxt->mutex);
|
||||
|
||||
|
|
Loading…
Reference in a new issue