@@ -60,24 +60,24 @@ static inline TP_connection *get_TP_connection(THD *thd)
60
60
/*
61
61
Worker threads contexts, and THD contexts.
62
62
=========================================
63
-
64
- Both worker threads and connections have their sets of thread local variables
65
- At the moment it is mysys_var (this has specific data for dbug, my_error and
63
+
64
+ Both worker threads and connections have their sets of thread local variables
65
+ At the moment it is mysys_var (this has specific data for dbug, my_error and
66
66
similar goodies), and PSI per-client structure.
67
67
68
68
Whenever query is executed following needs to be done:
69
69
70
70
1. Save worker thread context.
71
71
2. Change TLS variables to connection specific ones using thread_attach(THD*).
72
- This function does some additional work , e.g setting up
72
+ This function does some additional work , e.g setting up
73
73
thread_stack/thread_ends_here pointers.
74
74
3. Process query
75
75
4. Restore worker thread context.
76
76
77
- Connection login and termination follows similar schema w.r.t saving and
78
- restoring contexts.
77
+ Connection login and termination follows similar schema w.r.t saving and
78
+ restoring contexts.
79
79
80
- For both worker thread, and for the connection, mysys variables are created
80
+ For both worker thread, and for the connection, mysys variables are created
81
81
using my_thread_init() and freed with my_thread_end().
82
82
83
83
*/
@@ -154,7 +154,7 @@ static void thread_attach(THD* thd)
154
154
}
155
155
156
156
/*
157
- Determine connection priority , using current
157
+ Determine connection priority , using current
158
158
transaction state and 'threadpool_priority' variable value.
159
159
*/
160
160
static TP_PRIORITY get_priority (TP_connection *c)
@@ -289,7 +289,7 @@ static void threadpool_remove_connection(THD *thd)
289
289
delete thd;
290
290
291
291
/*
292
- Free resources associated with this connection:
292
+ Free resources associated with this connection:
293
293
mysys thread_var and PSI thread.
294
294
*/
295
295
my_thread_end ();
@@ -323,8 +323,8 @@ static int threadpool_process_request(THD *thd)
323
323
324
324
if (thd->killed >= KILL_CONNECTION)
325
325
{
326
- /*
327
- killed flag was set by timeout handler
326
+ /*
327
+ killed flag was set by timeout handler
328
328
or KILL command. Return error.
329
329
*/
330
330
retval= 1 ;
0 commit comments