diff options
author | konstantin@mysql.com <> | 2003-10-30 21:30:20 +0300 |
---|---|---|
committer | konstantin@mysql.com <> | 2003-10-30 21:30:20 +0300 |
commit | ca34cf30bdef0a54af4c3c61e4cd93543d86762f (patch) | |
tree | bc043819660ac3ef501696e08badeeef6763ccdc /sql/sql_class.h | |
parent | 844cf44a4dd5548e6813cc04564303fe90ce4184 (diff) | |
download | mariadb-git-ca34cf30bdef0a54af4c3c61e4cd93543d86762f.tar.gz |
comments about designation of thd->where and
thd->proc_info added
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 27258c025d8..58543a3d230 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -379,7 +379,11 @@ public: char priv_host[MAX_HOSTNAME]; /* remote (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; /* points to host if host is available, otherwise points to ip */ const char *host_or_ip; @@ -408,6 +412,11 @@ public: enum enum_server_command command; uint32 server_id; 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; time_t start_time,time_after_lock,user_time; time_t connect_time,thr_create_time; // track down slow pthread_create |