summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-11-04 09:40:36 +0200
committermonty@narttu.mysql.fi <>2003-11-04 09:40:36 +0200
commit4e4725377d27ff0101788fd7ed89670614ed8294 (patch)
treed387df22d5d3ffed50ecd8620f1eb18bc61ead7e /sql/sql_class.h
parent30af2d0f49a203ae4fb97194e899fa5e13a42c1d (diff)
parente1e82a4e00dd2cee2ff56accdd3fdbd5afeadb6a (diff)
downloadmariadb-git-4e4725377d27ff0101788fd7ed89670614ed8294.tar.gz
Merge with 4.0
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index c66ebb77020..7a8dc067256 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -481,7 +481,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;
@@ -510,6 +514,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