Skip to content
Permalink
Browse files
MDEV-16495 mariadb segfaults at start on FreeBSD
don't use MY_MUTEX_INIT_FAST in constructors of statically
allocated objects.
  • Loading branch information
vuvova committed Aug 12, 2018
1 parent 10d347d commit 08b9154
Showing 1 changed file with 1 addition and 2 deletions.
@@ -43,8 +43,7 @@ Ack_receiver::Ack_receiver()
DBUG_ENTER("Ack_receiver::Ack_receiver");

m_status= ST_DOWN;
mysql_mutex_init(key_LOCK_ack_receiver, &m_mutex,
MY_MUTEX_INIT_FAST);
mysql_mutex_init(key_LOCK_ack_receiver, &m_mutex, NULL);
mysql_cond_init(key_COND_ack_receiver, &m_cond, NULL);
m_pid= 0;

0 comments on commit 08b9154

Please sign in to comment.