[Commits] Rev 4306: MDEV-6489 - rpl.rpl_insert, rpl.rpl_insert_delayed and in lp:maria/10.0

Sergey Vojtovich svoj at mariadb.org
Fri Jul 25 16:02:55 EEST 2014


At lp:maria/10.0

------------------------------------------------------------
revno: 4306
revision-id: svoj at mariadb.org-20140725130247-cl64fv8g6g2ydbq7
parent: jplindst at mariadb.org-20140725073016-8y0e2u8zxd0x4z7t
committer: Sergey Vojtovich <svoj at mariadb.org>
branch nick: 10.0
timestamp: Fri 2014-07-25 17:02:47 +0400
message:
  MDEV-6489 - rpl.rpl_insert, rpl.rpl_insert_delayed and
              main.mysqlslap fail on PPC64
  
  There seem to be a bug on Power8 which doesn't guarantee
  a signal to be delivered to waiting thread if broadcast
  is called outside of mutex.
  
  For now workaround it by calling broadcast while mutex is
  still held.
=== modified file 'client/mysqlslap.c'
--- a/client/mysqlslap.c	2014-02-03 14:22:39 +0000
+++ b/client/mysqlslap.c	2014-07-25 13:02:47 +0000
@@ -1796,8 +1796,8 @@ run_scheduler(stats *sptr, statement *st
 
   pthread_mutex_lock(&sleeper_mutex);
   master_wakeup= 0;
-  pthread_mutex_unlock(&sleeper_mutex);
   pthread_cond_broadcast(&sleep_threshhold);
+  pthread_mutex_unlock(&sleeper_mutex);
 
   gettimeofday(&start_time, NULL);
 



More information about the commits mailing list