Thread pool breaks -DWITHOUT_PERFSCHEMA_ENGINE=1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Triaged
|
High
|
Unassigned | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Triaged
|
High
|
Unassigned |
Bug Description
=== modified file 'Percona-
--- Percona-
+++ Percona-
@@ -71,19 +71,25 @@
*/
struct Worker_
{
+#ifdef WITH_PERFSCHEMA
PSI_thread *psi_thread;
+#endif
st_my_
void save()
{
+#ifdef WITH_PERFSCHEMA
psi_thread= PSI_server?
+#endif
mysys_var= (st_my_thread_var *)pthread_
}
void restore()
{
+#ifdef WITH_PERFSCHEMA
if (PSI_server)
+#endif
pthread_
pthread_
pthread_
@@ -99,8 +105,10 @@
pthread_
thd-
thd-
+#ifdef WITH_PERFSCHEMA
if (PSI_server)
PSI_
+#endif
mysql_
return 0;
}
@@ -195,13 +203,14 @@
return 1;
}
+#ifdef WITH_PERFSCHEMA
/* Create new PSI thread for use with the THD. */
if (PSI_server)
{
thd-
}
-
+#endif
/* Login. */
thread_
=== modified file 'Percona-
--- Percona-
+++ Percona-
@@ -53,7 +53,7 @@
and timer thread with its own mutex and condition.
*/
-
+#ifdef WITH_PERFSCHEMA
static PSI_mutex_key key_group_mutex;
static PSI_mutex_key key_timer_mutex;
static PSI_mutex_info mutex_list[]=
@@ -81,7 +81,7 @@
/* Macro to simplify performance schema registration */
#define PSI_register(X) \
if(PSI_server) PSI_server-
-
+#endif
struct thread_group_t;
@@ -1554,9 +1554,11 @@
sql_
DBUG_
}
+#ifdef WITH_PERFSCHEMA
PSI_
PSI_
PSI_
+#endif
pool_
start_
summary: |
- Thread pool breaks -DWITHOUT_PERFSCHEMA_ENGINE= + Thread pool breaks -DWITHOUT_PERFSCHEMA_ENGINE=1 |
tags: | added: low-hanging-fruit |
tags: | added: tp |