mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 01:35:31 +02:00
MDEV-3850 too early pthread_mutex_unlock in TC_LOG_MMAP::log_xid
This commit is contained in:
parent
e679dfcafc
commit
632dc05ded
1 changed files with 1 additions and 4 deletions
|
|
@ -5710,12 +5710,9 @@ int TC_LOG_MMAP::log_xid(THD *thd, my_xid xid)
|
|||
pthread_mutex_unlock(&LOCK_active);
|
||||
pthread_mutex_lock(&p->lock);
|
||||
p->waiters++;
|
||||
for (;;)
|
||||
while (p->state == DIRTY && syncing)
|
||||
{
|
||||
int not_dirty = p->state != DIRTY;
|
||||
pthread_mutex_unlock(&p->lock);
|
||||
if (not_dirty || !syncing)
|
||||
break;
|
||||
pthread_cond_wait(&p->cond, &LOCK_sync);
|
||||
pthread_mutex_lock(&p->lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue