summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <andrey@example.com>2006-10-19 11:37:07 +0200
committerunknown <andrey@example.com>2006-10-19 11:37:07 +0200
commitca817b49cf00eebfb95e7765714a1a0db8913433 (patch)
tree10d77a48c28de2c543475df6d80470028e7b4f5f /sql/sql_class.cc
parentdc62ff5560fcd8596cba19b767cfb39396309d4f (diff)
downloadmariadb-git-ca817b49cf00eebfb95e7765714a1a0db8913433.tar.gz
Fix for bug#23379 "wrong time value in SHOW PROCESSLIST"
The value taken to be shown in SHOW PROCESSLIST is not initialized when THD is created and will be random for unauthenticated connections. To the documentor: Random value, instead of NULL, was shown, in SHOW PROCESSLIST for still non-authenticated connections. sql/sql_class.cc: Initialize time_after_lock. It is used from SHOW PROCESSLIST's code. If not initialized random value is shown for connected but still unauthenticated clients in the column Time.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index bd292814bfa..fc9597cba87 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -181,6 +181,7 @@ THD::THD()
// Must be reset to handle error with THD's created for init of mysqld
lex->current_select= 0;
start_time=(time_t) 0;
+ time_after_lock=(time_t) 0;
current_linfo = 0;
slave_thread = 0;
variables.pseudo_thread_id= 0;