mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#50513 Build failure with ifdef HAVE_OPENSSL + ifndef HAVE_YASSL
When compiling wiht ./configure --with-ssl=/usr, which used OPEN_SSL but not YASSL, the code in sql/mysqld.cc failed to build because of an incomplete performance schema instrumentation. This fix implements properly the instrumentation for the rwlock used in openssl_lock_t. Verified that the code builds, and the ssl + performance schema tests do pass.
This commit is contained in:
@@ -16,8 +16,10 @@ wait/synch/mutex/sql/LOCK_delayed_insert YES YES
|
||||
wait/synch/mutex/sql/LOCK_delayed_status YES YES
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/Rwlock/sql/%'
|
||||
order by name limit 10;
|
||||
and name not in ('wait/synch/mutex/sql/CRYPTO_dynlock_value::lock')
|
||||
order by name limit 10;
|
||||
NAME ENABLED TIMED
|
||||
wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock YES YES
|
||||
wait/synch/rwlock/sql/LOCK_dboptions YES YES
|
||||
wait/synch/rwlock/sql/LOCK_grant YES YES
|
||||
wait/synch/rwlock/sql/LOCK_system_variables_hash YES YES
|
||||
|
||||
@@ -36,8 +36,11 @@ select * from performance_schema.SETUP_INSTRUMENTS
|
||||
and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex')
|
||||
order by name limit 10;
|
||||
|
||||
# CRYPTO_dynlock_value::lock is dependent on the build (SSL)
|
||||
|
||||
select * from performance_schema.SETUP_INSTRUMENTS
|
||||
where name like 'Wait/Synch/Rwlock/sql/%'
|
||||
and name not in ('wait/synch/mutex/sql/CRYPTO_dynlock_value::lock')
|
||||
order by name limit 10;
|
||||
|
||||
# COND_handler_count is dependent on the build (Windows only)
|
||||
|
||||
Reference in New Issue
Block a user