1
0
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:
unknown
2013-06-25 15:48:01 +02:00
parent 6d1e55f518
commit 535de71728
2 changed files with 19 additions and 2 deletions

View File

@@ -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;
}