summaryrefslogtreecommitdiff
path: root/sql/threadpool_unix.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-06-22 14:02:03 +0200
committerSergei Golubchik <sergii@pisem.net>2013-06-22 14:02:03 +0200
commit7c61679c4e87c264df537ec716c903742d36686e (patch)
treecee1873353db0c70fb4ff068294343d4d63d4fb2 /sql/threadpool_unix.cc
parent7cc77106792a2683f85e57f501c3a3be066a02a5 (diff)
downloadmariadb-git-7c61679c4e87c264df537ec716c903742d36686e.tar.gz
MDEV-4685 Compile error on LFS
fix the code to compile w/o perfomance schema
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r--sql/threadpool_unix.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc
index 41fe87e19d3..dc2d8d999ef 100644
--- a/sql/threadpool_unix.cc
+++ b/sql/threadpool_unix.cc
@@ -52,6 +52,7 @@ static bool threadpool_started= false;
*/
+#ifdef HAVE_PSI_INTERFACE
static PSI_mutex_key key_group_mutex;
static PSI_mutex_key key_timer_mutex;
static PSI_mutex_info mutex_list[]=
@@ -79,6 +80,9 @@ static PSI_thread_info thread_list[] =
/* Macro to simplify performance schema registration */
#define PSI_register(X) \
if(PSI_server) PSI_server->register_ ## X("threadpool", X ## _list, array_elements(X ## _list))
+#else
+#define PSI_register(X) /* no-op */
+#endif
struct thread_group_t;