diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-06-22 14:02:03 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-06-22 14:02:03 +0200 |
commit | 7c61679c4e87c264df537ec716c903742d36686e (patch) | |
tree | cee1873353db0c70fb4ff068294343d4d63d4fb2 /plugin/sql_errlog | |
parent | 7cc77106792a2683f85e57f501c3a3be066a02a5 (diff) | |
download | mariadb-git-7c61679c4e87c264df537ec716c903742d36686e.tar.gz |
MDEV-4685 Compile error on LFS
fix the code to compile w/o perfomance schema
Diffstat (limited to 'plugin/sql_errlog')
-rw-r--r-- | plugin/sql_errlog/sql_logger.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/sql_errlog/sql_logger.cc b/plugin/sql_errlog/sql_logger.cc index 8bf757f2fd7..dd6363d1448 100644 --- a/plugin/sql_errlog/sql_logger.cc +++ b/plugin/sql_errlog/sql_logger.cc @@ -21,10 +21,12 @@ extern MYSQL_PLUGIN_IMPORT char *mysql_data_home; +#ifdef HAVE_PSI_INTERFACE /* These belong to the service initialization */ static PSI_mutex_key key_LOCK_logger_service; static PSI_mutex_info mutex_list[]= {{ &key_LOCK_logger_service, "logger_service_file_st::lock", PSI_FLAG_GLOBAL}}; +#endif typedef struct logger_handle_st { File file; @@ -188,7 +190,9 @@ int logger_printf(LOGGER_HANDLE *log, const char *fmt, ...) void init_logger_mutexes() { +#ifdef HAVE_PSI_INTERFACE if (PSI_server) PSI_server->register_mutex("sql_logger", mutex_list, 1); +#endif } |