1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MWL#182: Explain running statements: address review feedback

- Add Monty Program Ab copyright in new files
- Change Apc_target::make_apc_call() to accept a C++-style
  functor (instead of C-style function + parameter)
This commit is contained in:
Sergey Petrunya
2012-06-28 13:58:37 +04:00
parent 66c62de103
commit c62c0c5516
5 changed files with 57 additions and 34 deletions

View File

@ -1528,11 +1528,11 @@ class select_result_explain_buffer;
The thread that runs SHOW EXPLAIN statement creates a Show_explain_request
object R, and then schedules APC call of
Show_explain_request::get_explain_data((void*)&R).
Show_explain_request::call((void*)&R).
*/
class Show_explain_request
class Show_explain_request : public Apc_target::Apc_call
{
public:
THD *target_thd; /* thd that we're running SHOW EXPLAIN for */
@ -1546,8 +1546,9 @@ public:
/* Query that we've got SHOW EXPLAIN for */
String query_str;
static void get_explain_data(void *arg);
/* Overloaded virtual function */
void call_in_target_thread();
};
class THD;