Commit 1d1bdcc6 authored by unknown's avatar unknown

comments about designation of thd->where and

thd->proc_info added


sql/sql_class.h:
  comments about thd->where and thd->proc_info
  added
parent faeb0065
...@@ -379,7 +379,11 @@ class THD :public ilink ...@@ -379,7 +379,11 @@ class THD :public ilink
char priv_host[MAX_HOSTNAME]; char priv_host[MAX_HOSTNAME];
/* remote (peer) port */ /* remote (peer) port */
uint16 peer_port; uint16 peer_port;
/* Points to info-string that will show in SHOW PROCESSLIST */ /*
Points to info-string that we show in SHOW PROCESSLIST
You are supposed to update thd->proc_info only if you have coded
a time-consuming piece that MySQL can get stuck in for a long time.
*/
const char *proc_info; const char *proc_info;
/* points to host if host is available, otherwise points to ip */ /* points to host if host is available, otherwise points to ip */
const char *host_or_ip; const char *host_or_ip;
...@@ -408,6 +412,11 @@ class THD :public ilink ...@@ -408,6 +412,11 @@ class THD :public ilink
enum enum_server_command command; enum enum_server_command command;
uint32 server_id; uint32 server_id;
uint32 file_id; // for LOAD DATA INFILE uint32 file_id; // for LOAD DATA INFILE
/*
Used in error messages to tell user in what part of MySQL we found an
error. E. g. when where= "having clause", if fix_fields() fails, user
will know that the error was in having clause.
*/
const char *where; const char *where;
time_t start_time,time_after_lock,user_time; time_t start_time,time_after_lock,user_time;
time_t connect_time,thr_create_time; // track down slow pthread_create time_t connect_time,thr_create_time; // track down slow pthread_create
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment