diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-07-30 17:52:42 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-07-30 17:52:42 -0300 |
commit | 88780b03b916e98ad9116f1db0c380078ebc78af (patch) | |
tree | 937cfa972b521e12cddba6f2874eb92106cc63f7 /sql/sql_class.cc | |
parent | 0f298415f8adf6ad54f98260b66dc8734b76bd1e (diff) | |
download | mariadb-git-88780b03b916e98ad9116f1db0c380078ebc78af.tar.gz |
Bug#43435: LOCK_open does not use MY_MUTEX_INIT_FAST
Initialize LOCK_open as a adapative mutex on platforms where the
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP macro is available. The flag
indicates that a thread should spin (busy wait) for some time on a
locked adaptive mutex before blocking (sleeping). It's intended to
to alleviate performance problems due to LOCK_open being a highly
contended mutex.
sql/mysqld.cc:
Initialize LOCK_open as a adapative mutex.
Diffstat (limited to 'sql/sql_class.cc')
0 files changed, 0 insertions, 0 deletions