mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-4506: Parallel replication: intermediate commit.
Fix typo in worker thread free list management. Simple parallel INSERT from worker threads runs now.
This commit is contained in:
@@ -132,9 +132,9 @@ handle_rpl_parallel_thread(void *arg)
|
||||
mysql_mutex_lock(&rpt->pool->LOCK_rpl_thread_pool);
|
||||
list= rpt->pool->free_list;
|
||||
rpt->next= list;
|
||||
rpt->pool->free_list= list;
|
||||
rpt->pool->free_list= rpt;
|
||||
if (!list)
|
||||
mysql_cond_signal(&rpt->pool->COND_rpl_thread_pool);
|
||||
mysql_cond_broadcast(&rpt->pool->COND_rpl_thread_pool);
|
||||
mysql_mutex_unlock(&rpt->pool->LOCK_rpl_thread_pool);
|
||||
rpt->free= true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user