Skip to content

Commit

Permalink
MDEV-16495 mariadb segfaults at start on FreeBSD
Browse files Browse the repository at this point in the history
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.
3 changes: 1 addition & 2 deletions sql/semisync_master_ack_receiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 08b9154

Please sign in to comment.